Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force Curl to work with HTTP/1 only #25

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Bounce182
Copy link

In case of using newer curl version, which supports HTTP/2 (php/php-src@1badfd8), BambooAPI can't parse the headers, cause in HTTP/2 they come strlowered: https://httpwg.org/specs/rfc7540.html#HttpHeaders

Bounce182 and others added 4 commits October 18, 2021 17:52
In case of using newer curl version, which supports HTTP/2 (php/php-src@1badfd8), BambooAPI can't parse the headers, cause in HTTP/2 they come strlowered: https://httpwg.org/specs/rfc7540.html#HttpHeaders
In case of using newer curl version, which supports HTTP/2 (php/php-src@1badfd8), BambooAPI can't parse the headers, cause in HTTP/2 they come strlowered: https://httpwg.org/specs/rfc7540.html#HttpHeaders
@@ -52,6 +52,8 @@ function sendRequest(BambooHTTPRequest $request) {
$response = new BambooHTTPResponse();

$http = curl_init();

curl_setopt($http, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants