Skip to content

Commit 46acae9

Browse files
Merge branch '6.1' into 6.2
* 6.1: (25 commits) [Messenger] Use :memory: for SQLite tests [Mailer] Stream timeout not detected due to checking only string result of function fgets don not set http_version instead of setting it to null [DependencyInjection] don't move locator tag for service subscriber Fix search scope when performing fallback mapping driver detection Fix the notification email theme for asynchronously dispatched emails Update the CI setup to use the new output file Update actions in the CI to move away from the deprecated runtime Use 6.3 for new features [HttpFoundation] Check IPv6 is valid before comparing it Run tests with UTC to avoid daylight saving time messing with assertions Bump Symfony version to 6.1.8 Update VERSION for 6.1.7 Update CHANGELOG for 6.1.7 Bump Symfony version to 6.0.16 Update VERSION for 6.0.15 Update CHANGELOG for 6.0.15 Bump Symfony version to 5.4.16 Update VERSION for 5.4.15 Update CHANGELOG for 5.4.15 ...
2 parents 9d7d0d8 + 656b10f commit 46acae9

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

HttplugClient.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,17 @@ private function sendPsr7Request(RequestInterface $request, bool $buffer = null)
291291
$body->seek(0);
292292
}
293293

294-
return $this->client->request($request->getMethod(), (string) $request->getUri(), [
294+
$options = [
295295
'headers' => $request->getHeaders(),
296296
'body' => $body->getContents(),
297-
'http_version' => '1.0' === $request->getProtocolVersion() ? '1.0' : null,
298297
'buffer' => $buffer,
299-
]);
298+
];
299+
300+
if ('1.0' === $request->getProtocolVersion()) {
301+
$options['http_version'] = '1.0';
302+
}
303+
304+
return $this->client->request($request->getMethod(), (string) $request->getUri(), $options);
300305
} catch (\InvalidArgumentException $e) {
301306
throw new RequestException($e->getMessage(), $request, $e);
302307
} catch (TransportExceptionInterface $e) {

Psr18Client.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@ public function sendRequest(RequestInterface $request): ResponseInterface
9999
$body->seek(0);
100100
}
101101

102-
$response = $this->client->request($request->getMethod(), (string) $request->getUri(), [
102+
$options = [
103103
'headers' => $request->getHeaders(),
104104
'body' => $body->getContents(),
105-
'http_version' => '1.0' === $request->getProtocolVersion() ? '1.0' : null,
106-
]);
105+
];
106+
107+
if ('1.0' === $request->getProtocolVersion()) {
108+
$options['http_version'] = '1.0';
109+
}
110+
111+
$response = $this->client->request($request->getMethod(), (string) $request->getUri(), $options);
107112

108113
$psrResponse = $this->responseFactory->createResponse($response->getStatusCode());
109114

0 commit comments

Comments
 (0)