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