Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] default handlers for head (#3903)
* fix: respond to HEAD requests in endpoints * chore: cleanup * fix: handle head requests when loading shadow data * add changeset * refactor: normalize request method without replace * fix: use instead of empty string for HEAD response body * Apply suggestions from code review Co-authored-by: Rich Harris <hello@rich-harris.dev> * code style tweaks * remove more type annotations * more code style * Apply suggestions from code review Co-authored-by: Rich Harris <hello@rich-harris.dev> Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
d520d40
commit 012850e
Showing
5 changed files
with
86 additions
and
9 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/kit': patch | ||
--- | ||
|
||
handle HEAD requests in endpoints |
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
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
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
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