Skip to content

Commit

Permalink
implement properly setting the content encoding header
Browse files Browse the repository at this point in the history
  • Loading branch information
saifullah-talukder committed Jun 25, 2024
1 parent c8c13db commit 876dd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/api/search/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const GET = async (req: NextRequest) => {
}

const headers = new Headers(response.headers)
headers.delete('content-encoding')
headers.set('content-encoding', 'none')
headers.delete('Content-Encoding')
headers.set('Content-Encoding', 'identity')

const { readable, writable } = new TransformStream()
const writer = writable.getWriter()
Expand Down

0 comments on commit 876dd05

Please sign in to comment.