1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-10 22:14:35 +00:00

fix: adding content type to SASjs server webout response

This commit is contained in:
Allan Bowe
2022-02-21 00:31:14 +00:00
parent 880df4138c
commit 6fca73e7da
2 changed files with 10 additions and 2 deletions

View File

@@ -18585,8 +18585,9 @@ run;
`,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`
<h4> SAS Macros </h4>
@li mp_jsonout.sas
@li mf_getuser.sas
@li mp_jsonout.sas
@li mfs_httpheader.sas
<h4> Related Macros </h4>
@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" '"';

View File

@@ -33,8 +33,9 @@
`,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`
<h4> SAS Macros </h4>
@li mp_jsonout.sas
@li mf_getuser.sas
@li mp_jsonout.sas
@li mfs_httpheader.sas
<h4> Related Macros </h4>
@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" '"';