8000 bug #35562 [HttpClient] fix HttpClientDataCollector when handling can… · symfony/symfony@a2d6d11 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2d6d11

Browse files
bug #35562 [HttpClient] fix HttpClientDataCollector when handling canceled responses (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] fix HttpClientDataCollector when handling canceled responses | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35458 | License | MIT | Doc PR | - Commits ------- 303f9e5 [HttpClient] fix HttpClientDataCollector when handling canceled responses
2 parents 6f29d8d + 303f9e5 commit a2d6d11

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