Skip to content

Commit 41ef0be

Browse files
committed
Merge branch 'master' into feat/req-res-decorators
2 parents bab3a07 + e60ca18 commit 41ef0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internals/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function Handler(method?: HttpVerb): MethodDecorator {
8484
return;
8585
}
8686

87-
res.status(httpCode ?? (returnValue ? 200 : 204));
87+
res.status(httpCode ?? (returnValue != null ? 200 : 204));
8888

8989
if (returnValue instanceof Stream) {
9090
returnValue.pipe(res);

0 commit comments

Comments
 (0)