Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a2d6d11

Browse filesBrowse 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
Copy full SHA for a2d6d11

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.