Skip to content

Commit 3b59d06

Browse files
author
Eamonn McEvoy
committed
fix(streaming-files): escape curly brace characters
1 parent 58eaf8d commit 3b59d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/streaming-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Fastify, by default, can support sending files without needing to call `stream.p
3131

3232
You can find a simple example of returning the `package.json` as a file instead of a JSON below, but the idea extends out naturally to images, documents, and any other file type.
3333

34-
> info **hint** If the @Response parameter is present, it must have `{ passthrough: true }`.
34+
> info **hint** If the @Response parameter is present, it must have `{{ '{' }} passthrough: true {{ '}' }}`.
3535
3636
```ts
3737
import { Controller, Get, StreamableFile } from '@nestjs/common';

0 commit comments

Comments
 (0)