Skip to content

Commit

Permalink
[HttpClient] fix HttpClientDataCollector when handling canceled respo…
Browse files Browse the repository at this point in the history
…nses
  • Loading branch information
nicolas-grekas committed Feb 2, 2020
1 parent 6f29d8d commit 3cb726d
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 ($trace['method'] === ($info['http_method'] ?? null)) {
unset($info['http_method']);
}

Expand Down

0 comments on commit 3cb726d

Please sign in to comment.