Skip to content

Commit a72f20a

Browse files
committed
improve formatting
1 parent c36c42a commit a72f20a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/response/StreamedResponse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export class StreamedResponse<A> extends Response<A> {
1818
public constructor(stream: NodeJS.ReadableStream, statusCode = 200, headers?: HeadersInit) {
1919
super(statusCode, headers);
2020
this.stream = stream;
21-
if (!this.headers.has("transfer-encoding")) this.headers.set("transfer-encoding", "chunked");
21+
if (!this.headers.has("transfer-encoding"))
22+
this.headers.set("transfer-encoding", "chunked");
2223
}
2324

2425
protected override async send(res: http.ServerResponse, req?: Request<A>): Promise<void> {

0 commit comments

Comments
 (0)