Closed dschenkelman closed 10 years ago
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.
if (request.raw.req.headers['content-type'].indexOf('application/x-www-form-urlencoded') === 0)
request.raw.req.headers['content-type']
Thanks, I'll get this fixed today.
Cool, thanks :)
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 whererequest.raw.req.headers['content-type']
is undefined.