ultimate-express 2.0.8 → 2.0.9
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 +1 -1
- package/src/middlewares.js +1 -1
package/package.json
CHANGED
package/src/middlewares.js
CHANGED
|
@@ -168,7 +168,7 @@ function createBodyParser(defaultType, beforeReturn) {
|
|
|
168
168
|
|
|
169
169
|
const type = req.headers['content-type'];
|
|
170
170
|
|
|
171
|
-
req.body = new NullObject();
|
|
171
|
+
if(!req.body) req.body = new NullObject();
|
|
172
172
|
|
|
173
173
|
// skip reading body for no content type
|
|
174
174
|
if(!type) {
|