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:
6
all.sas
6
all.sas
@@ -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" '"';
|
||||
|
||||
@@ -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" '"';
|
||||
|
||||
Reference in New Issue
Block a user