We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d35d7b commit 365c40bCopy full SHA for 365c40b
1 file changed
packages/platform-fastify/adapters/fastify-adapter.ts
@@ -280,14 +280,14 @@ export class FastifyAdapter<
280
fastifyReply.status(statusCode);
281
}
282
if (body instanceof StreamableFile) {
283
- body = body.getStream();
284
const streamHeaders = body.getHeaders();
285
if (fastifyReply.getHeader('Content-Type') === undefined) {
286
fastifyReply.header('Content-Type', streamHeaders.type);
287
288
if (fastifyReply.getHeader('Content-Disposition') === undefined) {
289
fastifyReply.header('Content-Disposition', streamHeaders.disposition);
290
+ body = body.getStream();
291
292
return fastifyReply.send(body);
293
0 commit comments