Commit 3ff30ad
authored
Clone response in Lookup Race Response algorithm (#1811)
The "Lookup Race Response" algorithm returned a response from the race
response map directly. This could lead to issues where a response body
is consumed more than once, as a Response object's body cannot be reused
across multiple fetch operations.
This change modifies the algorithm to return a clone of the response,
aligning with the Fetch specification's standard practice for handling
responses that may be used by multiple consumers. This ensures that each
fetch handler receives a distinct, readable stream.
See also: https://fetch.spec.whatwg.org/#concept-response-clone1 parent a6ed7c8 commit 3ff30ad
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4158 | 4158 | | |
4159 | 4159 | | |
4160 | 4160 | | |
4161 | | - | |
| 4161 | + | |
4162 | 4162 | | |
4163 | 4163 | | |
4164 | 4164 | | |
| |||
0 commit comments