[HttpClient] fix HttpClientDataCollector when handling canceled responses
This commit is contained in:
parent
48272f000a
commit
7088ef78f7
@ -120,7 +120,7 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
|
|||||||
unset($info['http_method']);
|
unset($info['http_method']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($trace['url'] === $info['url']) {
|
if (($info['url'] ?? null) === $trace['url']) {
|
||||||
unset($info['url']);
|
unset($info['url']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user