Skip to content

Commit

Permalink
Fixup changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Dec 20, 2024
1 parent ff429c2 commit 85c3c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/headers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ let h3 = new AcceptLanguage({ 'en-US': 1 });
- 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()`.

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

headers.contentType = null; // same as headers.delete('Content-Type');
headers.contentType; // null
headers.get('Content-Type'); // null
```

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

0 comments on commit 85c3c0e

Please sign in to comment.