Skip to content

Commit 85c3c0e

Browse files
committed
Fixup changelog
1 parent ff429c2 commit 85c3c0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/headers/CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ let h3 = new AcceptLanguage({ 'en-US': 1 });
7373
- All setters now also accept `undefined | null` in addition to `string` and custom object values. Setting a header to `undefined | null` is the same as using `headers.delete()`.
7474

7575
```ts
76-
let headers = new SuperHeaders({ 'Content-Type': 'text/html' });
77-
headers.contentType; // 'text/html'
76+
let headers = new SuperHeaders({ contentType: 'text/html' });
77+
headers.get('Content-Type'); // 'text/html'
7878

7979
headers.contentType = null; // same as headers.delete('Content-Type');
80-
headers.contentType; // null
80+
headers.get('Content-Type'); // null
8181
```
8282

8383
- Allow setting date headers (`date`, `expires`, `ifModifiedSince`, `ifUnmodifiedSince`, and `lastModified`) using numbers.

0 commit comments

Comments
 (0)