Skip to content

Commit 12981dd

Browse files
committed
endwithoutbody
1 parent 77b7135 commit 12981dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/use/uWebSockets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ export function createHandler<Context extends OperationContext = undefined>(
7171
}
7272
if (body) {
7373
res.end(body);
74+
} else {
75+
res.endWithoutBody();
7476
}
7577
} catch (err) {
7678
// The handler shouldnt throw errors.

0 commit comments

Comments
 (0)