carllerche / tower-web

A fast, boilerplate free, web framework for Rust
MIT License
981 stars 51 forks source link

Parse content-type header value correctly #179

Closed carllerche closed 5 years ago

carllerche commented 5 years ago

The headers crate is now used to correctly parse the content-type header. This fixes a bug where requests with JSON bodies would be rejected if the content-type header value included a charset.