From 6fca73e7daf518b392418119f78aca5e900a0b4b Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Mon, 21 Feb 2022 00:31:14 +0000 Subject: [PATCH] fix: adding content type to SASjs server webout response --- all.sas | 6 +++++- server/ms_webout.sas | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/all.sas b/all.sas index 7284ecc..0f92aca 100644 --- a/all.sas +++ b/all.sas @@ -18585,8 +18585,9 @@ run; `,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`

SAS Macros

- @li mp_jsonout.sas @li mf_getuser.sas + @li mp_jsonout.sas + @li mfs_httpheader.sas

Related Macros

@li mv_webout.sas @@ -18638,6 +18639,9 @@ run; /* fix encoding */ OPTIONS NOBOMFILE; + /* set the header */ + %mfs_httpheader(Content-type,application/json) + /* setup json */ data _null_;file &fref encoding='utf-8' termstr=lf; put '{"SYSDATE" : "' "&SYSDATE" '"'; diff --git a/server/ms_webout.sas b/server/ms_webout.sas index 4a45f08..a566116 100644 --- a/server/ms_webout.sas +++ b/server/ms_webout.sas @@ -33,8 +33,9 @@ `,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`

SAS Macros

- @li mp_jsonout.sas @li mf_getuser.sas + @li mp_jsonout.sas + @li mfs_httpheader.sas

Related Macros

@li mv_webout.sas @@ -86,6 +87,9 @@ /* fix encoding */ OPTIONS NOBOMFILE; + /* set the header */ + %mfs_httpheader(Content-type,application/json) + /* setup json */ data _null_;file &fref encoding='utf-8' termstr=lf; put '{"SYSDATE" : "' "&SYSDATE" '"';