Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 3562ee4

Browse files
committedApr 6, 2020
Work around issue #69
For now we enforce HTTP/1.1, which *works*.
1 parent 9d638cb commit 3562ee4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎lib/php/libsdk/SDK/FileOps.php

+3
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
137137
curl_setopt($ch, CURLOPT_USERAGENT, Config::getSdkUserAgentName());
138138
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
139139

140+
// workaround for <https://github.com/microsoft/php-sdk-binary-tools/issues/69>
141+
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
142+
140143
$ret = curl_exec($ch);
141144

142145
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

0 commit comments

Comments
 (0)