Skip to content

Commit fe9618c

Browse files
committed
Use HTTP 1.1 protocol in ClientInterface implementing classes
1 parent 3dfe393 commit fe9618c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Jira/Api/Client/CurlClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function sendRequest(
9393
curl_setopt($curl, CURLOPT_USERPWD, sprintf('%s:%s', $credential->getId(), $credential->getPassword()));
9494
}
9595

96+
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
9697
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
9798
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
9899
curl_setopt($curl, CURLOPT_VERBOSE, $debug);

src/Jira/Api/Client/PHPClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function sendRequest(
123123
'method' => $method,
124124
'header' => implode("\r\n", $header),
125125
'ignore_errors' => true,
126+
'protocol_version' => 1.1, // Not needed since PHP 8.0.
126127
),
127128
);
128129

0 commit comments

Comments
 (0)