mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix uncaught error (#10234)
This commit is contained in:
parent
4edcb72430
commit
8903d2f6ec
@ -56,7 +56,8 @@ export class HTTPResponse extends BaseHTTPResponse {
|
||||
// TODO: update once BiDi has types
|
||||
this.#timings = (response as any).timings ?? null;
|
||||
|
||||
for (const header of response.headers) {
|
||||
// TODO: Removed once the Firefox implementation is compliant with https://w3c.github.io/webdriver-bidi/#get-the-response-data.
|
||||
for (const header of response.headers || []) {
|
||||
this.#headers[header.name] = header.value ?? '';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user