@trenskow/app 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application.js +1 -1
- package/package.json +1 -1
package/lib/application.js
CHANGED
|
@@ -322,7 +322,7 @@ export default class Application extends EventEmitter {
|
|
|
322
322
|
});
|
|
323
323
|
|
|
324
324
|
if (context.response.statusCode === 200) {
|
|
325
|
-
context.response.statusCode = context.result ? 200 : 204;
|
|
325
|
+
context.response.statusCode = typeof context.result !== 'undefined' ? 200 : 204;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
} catch (error) {
|