Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- libphutil% git show
- commit 1f2ae38e22879819eda466174fbdcbefa3a5f761
- Author: Lovro Puzar <lovro.puzar@gmail.com>
- Date: Wed Aug 28 17:29:52 2019
- Force curl to use HTTP 1.1 as a workaround for 408 from Google LB
- diff --git a/src/future/http/HTTPSFuture.php b/src/future/http/HTTPSFuture.php
- index 0064a8f..9409d93 100644
- --- a/src/future/http/HTTPSFuture.php
- +++ b/src/future/http/HTTPSFuture.php
- @@ -206,6 +206,7 @@ final class HTTPSFuture extends BaseHTTPFuture {
- curl_multi_add_handle(self::$multi, $curl);
- curl_setopt($curl, CURLOPT_URL, $uri);
- + curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
- if (defined('CURLOPT_PROTOCOLS')) {
- // cURL supports a lot of protocols, and by default it will honor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement