Skip to content

Commit

Permalink
fix: extra content type (html 4 viya) in mp_streamfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Bowe committed May 31, 2020
1 parent d9c6f27 commit 3617d1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/mp_streamfile.sas
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
contentdisp="attachment; filename=&outname";
%end;
%end;
%else %if &contentype=HTML %then %do;
%if &platform=SASVIYA %then %do;
filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"
contenttype="text/html";
%end;
%end;
%else %do;
%put %str(ERR)OR: Content Type &contenttype NOT SUPPORTED by &sysmacroname!;
%return;
Expand Down
6 changes: 6 additions & 0 deletions mc_all.sas
Original file line number Diff line number Diff line change
Expand Up @@ -3648,6 +3648,12 @@ proc sql
contentdisp="attachment; filename=&outname";
%end;
%end;
%else %if &contentype=HTML %then %do;
%if &platform=SASVIYA %then %do;
filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"
contenttype="text/html";
%end;
%end;
%else %do;
%put %str(ERR)OR: Content Type &contenttype NOT SUPPORTED by &sysmacroname!;
%return;
Expand Down

0 comments on commit 3617d1a

Please sign in to comment.