8000 [HttpClient] fix HttpClientDataCollector when handling canceled respo… · symfony/symfony@303f9e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 303f9e5

Browse files
[HttpClient] fix HttpClientDataCollector when handling canceled responses
1 parent 6f29d8d commit 303f9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private function collectOnClient(TraceableHttpClient $client): array
116116

117117
unset($info['filetime'], $info['http_code'], $info['ssl_verify_result'], $info['content_type']);
118118

119-
if ($trace['method'] === $info['http_method']) {
119+
if (($info['http_method'] ?? null) === $trace['method']) {
120120
unset($info['http_method']);
121121
}
122122

0 commit comments

Comments
 (0)
0