Skip to content

Commit bb311fa

Browse files
committed
Improve changeset
1 parent 4abd8ef commit bb311fa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.changeset/curvy-insects-cheer.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
---
2+
'@whatwg-node/fetch': patch
23
'@whatwg-node/node-fetch': patch
34
---
45

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

Comments
 (0)