Skip to content

Commit

Permalink
Add CURLOPT_HEADEROPT=CURLHEADER_SEPARATE for proxy connections
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Oct 17, 2023
1 parent 6731f38 commit a2f5594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HttpClient/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function sendRequest(string $requestData, Options $options): Response
$httpProxy = $options->getHttpProxy();
if (null !== $httpProxy) {
curl_setopt($curlHandle, \CURLOPT_PROXY, $httpProxy);
curl_setopt($curlHandle, \CURLOPT_HEADEROPT, \CURLHEADER_SEPARATE);

Check warning on line 59 in src/HttpClient/HttpClient.php

View check run for this annotation

Codecov / codecov/patch

src/HttpClient/HttpClient.php#L56-L59

Added lines #L56 - L59 were not covered by tests
}

$httpProxyAuthentication = $options->getHttpProxyAuthentication();
Expand Down

0 comments on commit a2f5594

Please sign in to comment.