Skip to content

Commit

Permalink
Merge pull request #306 from batijs/fix/305
Browse files Browse the repository at this point in the history
Provide headersOriginal
  • Loading branch information
magne4000 authored Jul 10, 2024
2 parents d0d7d26 + 427228a commit 6535f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boilerplates/shared-server/files/server/vike-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function vikeHandler<Context extends Record<string | number | symbo
request: Request,
context?: Context,
): Promise<Response> {
const pageContextInit = { ...context, urlOriginal: request.url };
const pageContextInit = { ...context, urlOriginal: request.url, headersOriginal: request.headers };
const pageContext = await renderPage(pageContextInit);
const response = pageContext.httpResponse;

Expand Down

0 comments on commit 6535f9b

Please sign in to comment.