DimaCrafter / dc-api-core

Simple API core for your projects
MIT License
11 stars 5 forks source link

Crash, when content-type not provided #13

Closed car1ot closed 4 years ago

car1ot commented 4 years ago
TypeError: Cannot read property 'split' of undefined
    at /root/plinko.cash/backend/node_modules/dc-api-core/index.js:69:54

Fix 68 row to: if (body.length === 0 || !req.headers['content-type']) return resolve();

mayerdev commented 4 years ago

You can create pull request.

car1ot commented 4 years ago

You can create pull request.

It seems that the creator does not care.

car1ot commented 4 years ago

Unsupported package. Use on your own risk.

mayerdev commented 4 years ago

It seems that the creator does not care.

This is an open source bro :D

car1ot commented 4 years ago

It seems that the creator does not care.

This is an open source bro :D

Okay, but used by people open-source projects must me supported by developer. Anyway, pull requests with serious fixes should be accepted.