Skip to content

Commit ab8446f

Browse files
committed
[HttpClient] Fix type error with http_version 1.1
Fix a type error by removing a nested setProtocolVersions() call in AmpHttpClient::request()
1 parent 213e564 commit ab8446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AmpHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function request(string $method, string $url, array $options = []): Respo
122122
if ($options['http_version']) {
123123
$request->setProtocolVersions(match ((float) $options['http_version']) {
124124
1.0 => ['1.0'],
125-
1.1 => $request->setProtocolVersions(['1.1', '1.0']),
125+
1.1 => ['1.1', '1.0'],
126126
default => ['2', '1.1', '1.0'],
127127
});
128128
}

0 commit comments

Comments
 (0)