We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abd8ef commit bb311faCopy full SHA for bb311fa
.changeset/curvy-insects-cheer.md
@@ -1,5 +1,16 @@
1
---
2
+'@whatwg-node/fetch': patch
3
'@whatwg-node/node-fetch': patch
4
5
-Fix the bug when `set-cookies` given is ignored in `HeadersInit`
6
+Fix the bug when `set-cookies` given is ignored in `HeadersInit`;
7
+
8
+```js
9
+import { Headers } from '@whatwg-node/fetch';
10
11
+const headers = new Headers([
12
+ ['set-cookie', 'a=b'],
13
+ ['set-cookie', 'c=d'],
14
+]);
15
+expect(headers.getSetCookie()).toEqual(['a=b', 'c=d']); // Previously it was empty
16
+```
0 commit comments