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
-------
303f9e5be5
[HttpClient] fix HttpClientDataCollector when handling canceled responses
This commit is contained in:
commit
a2d6d11085
@ -116,7 +116,7 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
|
||||
|
||||
unset($info['filetime'], $info['http_code'], $info['ssl_verify_result'], $info['content_type']);
|
||||
|
||||
if ($trace['method'] === $info['http_method']) {
|
||||
if (($info['http_method'] ?? null) === $trace['method']) {
|
||||
unset($info['http_method']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user