mythix 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -391,6 +391,9 @@ class HTTPServer {
391
391
  }
392
392
 
393
393
  errorHandler(message, statusCode, response /*, request */) {
394
+ if (response.statusMessage)
395
+ return;
396
+
394
397
  response.status(statusCode || 500).send(message || statusCodeToMessage(statusCode) || 'Internal Server Error');
395
398
  }
396
399