Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error if payload is expected but not provided #2

Closed
dschenkelman opened this issue Sep 3, 2014 · 2 comments
Closed

Unhandled error if payload is expected but not provided #2

dschenkelman opened this issue Sep 3, 2014 · 2 comments

Comments

@dschenkelman
Copy link
Contributor

The cause is https://github.com/mac-/ratify/blob/master/lib/RouteSchemaManager.js#L242.

Basically if (request.raw.req.headers['content-type'].indexOf('application/x-www-form-urlencoded') === 0) should handle the case where request.raw.req.headers['content-type'] is undefined.

@mac-
Copy link
Owner

mac- commented Sep 3, 2014

Thanks, I'll get this fixed today.

@dschenkelman
Copy link
Contributor Author

Cool, thanks :)

@mac- mac- closed this as completed in 4781be2 Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants