1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-05 00:20:05 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Allan Bowe
da79181b00 Merge pull request #232 from sasjs/allanbowe/update-headers-in-sasjs-231
fix: using latest sasjs headers, closes #231
2022-05-08 01:27:02 +03:00
Allan Bowe
a405104052 fix: using latest sasjs headers, closes #231 2022-05-07 22:25:49 +00:00
7 changed files with 26 additions and 22 deletions

24
all.sas
View File

@@ -19319,8 +19319,8 @@ data _null_;
file &fname1 lrecl=1000; file &fname1 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Content-Type: multipart/form-data; boundary=&boundary"; if _n_=1 then put "Content-Type: multipart/form-data; boundary=&boundary";
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;
@@ -19450,9 +19450,11 @@ data _null_;
file &fref1 lrecl=1000; file &fref1 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; if _n_=1 then do;
put "Content-Type: application/json"; put "Content-Type: application/json";
put "accept: application/json"; put "accept: application/json";
end;
put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;
@@ -20077,7 +20079,7 @@ data _null_;
file &headref lrecl=1000; file &headref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
proc http method='DELETE' headerin=&headref proc http method='DELETE' headerin=&headref
@@ -20126,7 +20128,7 @@ data _null_;
file &headref lrecl=1000; file &headref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
proc http method='GET' out=&binaryfref headerin=&headref proc http method='GET' out=&binaryfref headerin=&headref
@@ -20197,8 +20199,8 @@ data _null_;
file &fref0 lrecl=1000; file &fref0 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; if _n_=1 then put "accept: application/json";
put "accept: application/json"; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;
@@ -20385,8 +20387,8 @@ data _null_;
file &authref lrecl=1000; file &authref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put 'Authorization: Bearer ' _infile_; if _n_=1 then put "Content-Type: multipart/form-data; boundary=&boundary";
put "Content-Type: multipart/form-data; boundary=&boundary"; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;

View File

@@ -68,8 +68,8 @@ data _null_;
file &fname1 lrecl=1000; file &fname1 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Content-Type: multipart/form-data; boundary=&boundary"; if _n_=1 then put "Content-Type: multipart/form-data; boundary=&boundary";
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;

View File

@@ -87,9 +87,11 @@ data _null_;
file &fref1 lrecl=1000; file &fref1 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; if _n_=1 then do;
put "Content-Type: application/json"; put "Content-Type: application/json";
put "accept: application/json"; put "accept: application/json";
end;
put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;

View File

@@ -33,7 +33,7 @@ data _null_;
file &headref lrecl=1000; file &headref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
proc http method='DELETE' headerin=&headref proc http method='DELETE' headerin=&headref

View File

@@ -34,7 +34,7 @@ data _null_;
file &headref lrecl=1000; file &headref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; put _infile_;
run; run;
proc http method='GET' out=&binaryfref headerin=&headref proc http method='GET' out=&binaryfref headerin=&headref

View File

@@ -56,8 +56,8 @@ data _null_;
file &fref0 lrecl=1000; file &fref0 lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put "Authorization: Bearer " _infile_; if _n_=1 then put "accept: application/json";
put "accept: application/json"; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;

View File

@@ -137,8 +137,8 @@ data _null_;
file &authref lrecl=1000; file &authref lrecl=1000;
infile "&_sasjs_tokenfile" lrecl=1000; infile "&_sasjs_tokenfile" lrecl=1000;
input; input;
put 'Authorization: Bearer ' _infile_; if _n_=1 then put "Content-Type: multipart/form-data; boundary=&boundary";
put "Content-Type: multipart/form-data; boundary=&boundary"; put _infile_;
run; run;
%if &mdebug=1 %then %do; %if &mdebug=1 %then %do;