We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2576b2a commit 5613c54Copy full SHA for 5613c54
src/app.ts
@@ -114,7 +114,8 @@ export function createHandle (stack: Stack): PHandle {
114
if (type === 'string') {
115
return send(res, val, MIMES.html)
116
} else if (type === 'object' && val !== undefined) {
117
- if (val.buffer) {
+ // Return 'false' and 'null' values as JSON strings
118
+ if (val && val.buffer) {
119
return send(res, val)
120
} else if (val instanceof Error) {
121
throw createError(val)
0 commit comments