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:
Nicolas Grekas 2020-02-03 09:07:24 +01:00
commit a2d6d11085
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}