Skip to content

Commit

Permalink
Test route for the invalid headers
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-G committed Dec 6, 2024
1 parent 03784c0 commit 75e9c55
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function GET({ setHeaders }) {
globalThis.__SVELTEKIT_DEV__ = true;

setHeaders({
'cache-control': 'totally-invalid',
'content-type': 'not-a-real-type'
});

return new Response('Testing invalid headers');
}

0 comments on commit 75e9c55

Please sign in to comment.