mirror of
https://github.com/denoland/deno.git
synced 2025-07-22 20:55:08 +00:00
fix(ext/http): reading headers with ongoing body reader (#15161)
This commit is contained in:
parent
dcd05d4cb9
commit
5b26a4a30e
3 changed files with 77 additions and 9 deletions
|
@ -81,7 +81,11 @@
|
|||
headerListInner: null,
|
||||
get headerList() {
|
||||
if (this.headerListInner === null) {
|
||||
this.headerListInner = headerList();
|
||||
try {
|
||||
this.headerListInner = headerList();
|
||||
} catch {
|
||||
throw new TypeError("cannot read headers: request closed");
|
||||
}
|
||||
}
|
||||
return this.headerListInner;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue