Skip to content

Commit

Permalink
bug #35562 [HttpClient] fix HttpClientDataCollector when handling can…
Browse files Browse the repository at this point in the history
…celed 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
  • Loading branch information
nicolas-grekas committed Feb 3, 2020
2 parents 6f29d8d + 303f9e5 commit a2d6d11
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -116,7 +116,7 @@ private function collectOnClient(TraceableHttpClient $client): array

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

Expand Down

0 comments on commit a2d6d11

Please sign in to comment.