Permalink
Browse files

Only set `request_fulluri` to `true` if we are using a proxy URL.

  • Loading branch information...
1 parent a67bbaf commit 432a56ff7fd6fa3eedc7c41953bfde8388cb3a47 @saltybeagle saltybeagle committed Feb 15, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/HTTP/Request/Adapter/Phpstream.php
@@ -34,9 +34,12 @@ public function __construct()
public function sendRequest()
{
- $proxyurl = '';
+ $proxyurl = '';
+ $request_fulluri = false;
+
if (!is_null($this->proxy)) {
- $proxyurl = $this->proxy->url;
+ $proxyurl = $this->proxy->url;
+ $request_fulluri = true;
}
$info = array(
$this->uri->protocol => array(
@@ -46,7 +49,7 @@ public function sendRequest()
'proxy' => $proxyurl,
'ignore_errors' => true,
'max_redirects' => 3,
- 'request_fulluri' => true,
+ 'request_fulluri' => $request_fulluri,
)
);
// create context with proper junk

0 comments on commit 432a56f

Please sign in to comment.