fix(http): set headers on resposne manually (#1526)

The browser `Response` constructor removes `set-cookie` headers and so we set them manually.

closes #1470
This commit is contained in:
Amr Bashir
2024-07-08 15:18:14 +03:00
committed by GitHub
parent 77dfcb8566
commit a66549329c
3 changed files with 15 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"http-js": "patch"
---
Fix missing `Set-Cookie` headers in the response which meant `request.headers.getSetCookie()` always returned empty array.