fix(http): correct Response header initialization to support cloning (fix #14892) (#3252)

Previously, headers were patched onto the Response object after construction, which bypassed the internal header list and caused `response.clone().headers` to be empty. This change passes the headers directly to the Response constructor, ensuring they are properly stored and clonable.
This commit is contained in:
Niklas Volcz
2026-02-16 15:35:09 +01:00
committed by GitHub
parent 6c3da6d290
commit 2971289252
3 changed files with 30 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"http": patch
"http-js": patch
---
Correct Response header initialization to support cloning and ensure Set-Cookie visibility.