Skip to content

Commit

Permalink
bug #35672 [HttpClient] fix HttpClientDataCollector when handling can…
Browse files Browse the repository at this point in the history
…celed responses (thematchless)

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       | -
| License       | MIT
| Doc PR        | -

small addition to the already merged #35562

Commits
-------

7088ef7 [HttpClient] fix HttpClientDataCollector when handling canceled responses
  • Loading branch information
nicolas-grekas committed Feb 11, 2020
2 parents 48272f0 + 7088ef7 commit c895a40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -120,7 +120,7 @@ private function collectOnClient(TraceableHttpClient $client): array
unset($info['http_method']);
}

if ($trace['url'] === $info['url']) {
if (($info['url'] ?? null) === $trace['url']) {
unset($info['url']);
}

Expand Down

0 comments on commit c895a40

Please sign in to comment.