-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not crash server if specified
ADDRESS_HEADER
is missing fro…
…m a request (#10285) This fixes #10284 by moving the check for the presence of the header specified in ADDRESS_HEADER inside the getClientAddress function. The old behavior is that non-prerendered requests without the appropriate header will instantly crash the server. The new behavior is that getClientAddress() will throw an exception, like with the other checks.
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-node': patch | ||
--- | ||
|
||
fix: do not crash server if specified `ADDRESS_HEADER` is missing from a request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters