diff --git a/src/http/replay.ts b/src/http/replay.ts index eba3287..1e44de7 100644 --- a/src/http/replay.ts +++ b/src/http/replay.ts @@ -46,7 +46,7 @@ async function writeMessagesToResponse(res: OutgoingMessage, replayOptions: Repl const BATCH_SIZE = 32 // not 100% sure that's necessary since we're returning ndjson in fact, not json - res.setHeader('Content-Type', 'application/json') + res.setHeader('Content-Type', 'application/x-json-stream') let buffers: Buffer[] = [] let totalMessagesCount = 0 diff --git a/src/http/replaynormalized.ts b/src/http/replaynormalized.ts index 40cbb79..828b72e 100644 --- a/src/http/replaynormalized.ts +++ b/src/http/replaynormalized.ts @@ -43,7 +43,7 @@ export const replayNormalizedHttp = async (req: IncomingMessage, res: ServerResp async function writeMessagesToResponse(res: OutgoingMessage, options: ReplayNormalizedRequestOptions) { const BATCH_SIZE = 32 - res.setHeader('Content-Type', 'application/json') + res.setHeader('Content-Type', 'application/x-json-stream') let buffers: string[] = [] let totalMessagesCount = 0