Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14080298
D20744.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
652 B
Referenced Files
None
Subscribers
None
D20744.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20744: Force HTTP/1.1 in HTTPSFuture until HTTP/2 support stabilizes
Attached
Detach File
Event Timeline
Log In to Comment