We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36c42a commit a72f20aCopy full SHA for a72f20a
src/response/StreamedResponse.ts
@@ -18,7 +18,8 @@ export class StreamedResponse<A> extends Response<A> {
18
public constructor(stream: NodeJS.ReadableStream, statusCode = 200, headers?: HeadersInit) {
19
super(statusCode, headers);
20
this.stream = stream;
21
- if (!this.headers.has("transfer-encoding")) this.headers.set("transfer-encoding", "chunked");
+ if (!this.headers.has("transfer-encoding"))
22
+ this.headers.set("transfer-encoding", "chunked");
23
}
24
25
protected override async send(res: http.ServerResponse, req?: Request<A>): Promise<void> {
0 commit comments