Skip to content

Commit 7282ef4

Browse files
authored
fix: fetchEvent -> HeaderProxy checks for null instead of undefined (#1919)
1 parent 9d25a45 commit 7282ef4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/open-ducks-flash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
fix: check for `null` instad of `undefined` in `HeaderProxy`

packages/start/src/server/fetchEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class HeaderProxy {
5353
return Array.isArray(h) ? h.join(", ") : (h as string) || null;
5454
}
5555
has(key: string) {
56-
return this.get(key) !== undefined;
56+
return this.get(key) !== null;
5757
}
5858
set(key: string, value: string) {
5959
return setResponseHeader(this.event, key, value);

0 commit comments

Comments
 (0)