Skip to content

Commit

Permalink
Don't try to pass the curlHandle through
Browse files Browse the repository at this point in the history
We would need to change MaxMind\WebService\Client for this to work and
there isn't a clear use case. Also, the `!` was wrong anyway.
  • Loading branch information
oschwald committed Dec 9, 2019
1 parent bc40187 commit e2f1885
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/WebService/Http/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ public function __destruct()
*/
public function request($url, $options)
{
if (!empty($options['curlHandle'])) {
$options['curlHandle'] = $this->ch;
}
$options['curlHandle'] = $this->ch;

return new CurlRequest($url, $options);
}
Expand Down

0 comments on commit e2f1885

Please sign in to comment.