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.
2 parents bab3a07 + e60ca18 commit 41ef0beCopy full SHA for 41ef0be
lib/internals/handler.ts
@@ -84,7 +84,7 @@ export function Handler(method?: HttpVerb): MethodDecorator {
84
return;
85
}
86
87
- res.status(httpCode ?? (returnValue ? 200 : 204));
+ res.status(httpCode ?? (returnValue != null ? 200 : 204));
88
89
if (returnValue instanceof Stream) {
90
returnValue.pipe(res);
0 commit comments