Page MenuHomePhabricator

D20744.diff
No OneTemporary

D20744.diff

diff --git a/src/future/http/HTTPSFuture.php b/src/future/http/HTTPSFuture.php
--- a/src/future/http/HTTPSFuture.php
+++ b/src/future/http/HTTPSFuture.php
@@ -356,6 +356,11 @@
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $verify_host);
curl_setopt($curl, CURLOPT_SSLVERSION, 0);
+ // See T13391. Recent versions of cURL default to "HTTP/2" on some
+ // connections, but do not support HTTP/2 proxies. Until HTTP/2
+ // stabilizes, force HTTP/1.1 explicitly.
+ curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
+
if ($proxy) {
curl_setopt($curl, CURLOPT_PROXY, (string)$proxy);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 12:32 PM (13 h, 55 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6778517
Default Alt Text
D20744.diff (652 B)

Event Timeline