Advertisement
Guest User

Untitled

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