Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 21, 2022
1 parent cfb3c48 commit d0735ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/server/app-render.tsx
@@ -1,4 +1,4 @@
import type { IncomingMessage, ServerResponse } from 'http'
import type { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'http'
import type { LoadComponentsReturnType } from './load-components'
import type { ServerRuntime } from '../types'

Expand Down Expand Up @@ -499,7 +499,7 @@ const FLIGHT_PARAMETERS = [
'__flight_prefetch__',
] as const

function headersWithoutFlight(headers: { [key: string]: string }) {
function headersWithoutFlight(headers: IncomingHttpHeaders) {
const newHeaders = { ...headers }
for (const param of FLIGHT_PARAMETERS) {
delete newHeaders[param]
Expand Down

0 comments on commit d0735ea

Please sign in to comment.