Skip to content

Commit

Permalink
Merge pull request cakephp#10039 from dmromanov/bug/10038-proxy-reque…
Browse files Browse the repository at this point in the history
…sturi

Incorrect Request-URI when using HttpClient with proxy
  • Loading branch information
lorenzo authored Jan 15, 2017
2 parents 9e41f11 + 2710e2b commit fa88503
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Client/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ protected function _buildOptions(Request $request, $options)
$this->_contextOptions['max_redirects'] = (int)$options['redirect'];
}
if (isset($options['proxy']['proxy'])) {
$this->_contextOptions['request_fulluri'] = true;
$this->_contextOptions['proxy'] = $options['proxy']['proxy'];
}
}
Expand Down

0 comments on commit fa88503

Please sign in to comment.