Browse Source

Merge pull request #10039 from dmromanov/bug/10038-proxy-requesturi

Incorrect Request-URI when using HttpClient with proxy
José Lorenzo Rodríguez 9 years ago
parent
commit
fa88503322
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Http/Client/Adapter/Stream.php

+ 1 - 0
src/Http/Client/Adapter/Stream.php

@@ -202,6 +202,7 @@ class Stream
             $this->_contextOptions['max_redirects'] = (int)$options['redirect'];
         }
         if (isset($options['proxy']['proxy'])) {
+            $this->_contextOptions['request_fulluri'] = true;
             $this->_contextOptions['proxy'] = $options['proxy']['proxy'];
         }
     }