AlexanderMac / http-z

Parse/build HTTP message to/from model
MIT License
17 stars 6 forks source link

Don't allow contentType header for non-post methods #25

Closed AlexanderMac closed 5 years ago

AlexanderMac commented 5 years ago

Throw error when contentType and contentLength headers are used when method are not POST, PUT.

AlexanderMac commented 5 years ago

This is not http-z goal to validate the sense of http message.