Skip to content

Commit b953045

Browse files
try other header
1 parent c74c3b5 commit b953045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/php/libsdk/SDK/FileOps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
131131
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
132132
}
133133

134-
curl_setopt($ch, CURLOPT_HEADER, false);
134+
//curl_setopt($ch, CURLOPT_HEADER, false);
135135
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
136136
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
137137
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
@@ -141,7 +141,7 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
141141
$token = getenv('API_TOKEN');
142142
if (!empty($token)) {
143143
echo "**** define authorization header ! ****\n";
144-
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer '.$token]);
144+
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-custom-header: top1','Authorization: Bearer '.$token]);
145145
}
146146

147147
// workaround for <https://github.com/microsoft/php-sdk-binary-tools/issues/69>

0 commit comments

Comments
 (0)