Skip to content

Commit

Permalink
Merge pull request #11 from bradjones1/httpClient-fix
Browse files Browse the repository at this point in the history
Properly pass options to HttpClient
  • Loading branch information
bradjones1 committed May 24, 2016
2 parents 6458beb + c0e9f07 commit 723a7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/InoOicClient/Oic/AbstractHttpRequestDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function setJsonCoder(Coder $jsonCoder)
public function sendHttpRequest(Http\Request $httpRequest)
{
$this->setLastHttpRequest($httpRequest);
$this->httpClient->setOptions($this->options->get(self::OPT_HTTP_OPTIONS, array()));

try {
$httpResponse = $this->httpClient->send($httpRequest);
Expand Down
2 changes: 1 addition & 1 deletion src/InoOicClient/Oic/Token/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Dispatcher extends AbstractHttpRequestDispatcher
public function getHttpRequestBuilder()
{
if (! $this->httpRequestBuilder instanceof HttpRequestBuilder) {
$this->httpRequestBuilder = new HttpRequestBuilder($this->options->get(self::OPT_HTTP_OPTIONS, array()));
$this->httpRequestBuilder = new HttpRequestBuilder();
}
return $this->httpRequestBuilder;
}
Expand Down

0 comments on commit 723a7e7

Please sign in to comment.