Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/open-ducks-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

fix: check for `null` instad of `undefined` in `HeaderProxy`
2 changes: 1 addition & 1 deletion packages/start/src/server/fetchEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class HeaderProxy {
return Array.isArray(h) ? h.join(", ") : (h as string) || null;
}
has(key: string) {
return this.get(key) !== undefined;
return this.get(key) !== null;
Comment thread
atilafassina marked this conversation as resolved.
}
set(key: string, value: string) {
return setResponseHeader(this.event, key, value);
Expand Down
Loading