MCPcopy Index your code
hub / github.com/nextauthjs/next-auth-example / stripContentEncoding

Function stripContentEncoding

app/[...proxy]/route.tsx:5–14  ·  view source on GitHub ↗
(result: Response)

Source from the content-addressed store, hash-verified

3
4// Review if we need this, and why
5function stripContentEncoding(result: Response) {
6 const responseHeaders = new Headers(result.headers)
7 responseHeaders.delete("content-encoding")
8
9 return new Response(result.body, {
10 status: result.status,
11 statusText: result.statusText,
12 headers: responseHeaders,
13 })
14}
15
16async function handler(request: NextRequest) {
17 const session = await auth()

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected