Skip to content

Commit

Permalink
Merge branch 'main' into cursor-on-counter-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid authored Oct 10, 2024
2 parents 9a42349 + bd8d7f5 commit cb604fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-beers-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

fix passing empty revalidation header from actions
6 changes: 3 additions & 3 deletions packages/start/src/runtime/server-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ async function fetchServerFunction(
}));

if (
response.headers.get("Location") ||
response.headers.get("X-Revalidate") ||
response.headers.get("X-Single-Flight")
response.headers.has("Location") ||
response.headers.has("X-Revalidate") ||
response.headers.has("X-Single-Flight")
) {
if (response.body) {
/* @ts-ignore-next-line */
Expand Down

0 comments on commit cb604fd

Please sign in to comment.