-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] Server-side fetch request should have headers (#696) #2861
Conversation
|
@@ -101,6 +101,12 @@ export async function load_node({ | |||
}; | |||
} | |||
|
|||
//merge headers from request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we usually put a space after //
//merge headers from request | |
// merge headers from request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two spaces between words too, we should have one space only.
@aolose this PR would need to be rebased and my comment would need to be addressed |
Server-side fetch in load function will include original request headers.
I'm only test it in the Page file , if server-side fetch not in load , headers will lost :( ,
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0