@sasjs/core 4.18.10 → 4.18.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/mp_streamfile.sas +10 -2
- package/package.json +1 -1
package/base/mp_streamfile.sas
CHANGED
|
@@ -105,12 +105,20 @@ run;
|
|
|
105
105
|
%end;
|
|
106
106
|
%end;
|
|
107
107
|
%else %if &contentype=HTML %then %do;
|
|
108
|
-
%if &platform=
|
|
108
|
+
%if (&platform=SASMETA and &streamweb=1) %then %do;
|
|
109
|
+
data _null_;
|
|
110
|
+
rc=stpsrv_header('Content-type','text/html');
|
|
111
|
+
rc=stpsrv_header('Content-disposition',"attachment; filename=&outname");
|
|
112
|
+
run;
|
|
113
|
+
%end;
|
|
114
|
+
%else %if &platform=SASVIYA %then %do;
|
|
109
115
|
filename &outref filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"
|
|
110
|
-
contenttype="text/html"
|
|
116
|
+
contenttype="text/html"
|
|
117
|
+
contentdisp="attachment; filename=&outname";
|
|
111
118
|
%end;
|
|
112
119
|
%else %if &platform=SASJS %then %do;
|
|
113
120
|
%mfs_httpheader(Content-type,text/html)
|
|
121
|
+
%mfs_httpheader(Content-disposition,%str(attachment; filename=&outname))
|
|
114
122
|
%end;
|
|
115
123
|
%end;
|
|
116
124
|
%else %if &contentype=TEXT %then %do;
|
package/package.json
CHANGED