Commit graph

5 commits

Author SHA1 Message Date
Bernardo Pericacho Sánchez
8afb3c57ef
AllowContentType middleware refactor and tests (#470)
* AllowContentType middleware refactor and tests

* Use struct in the map and just check existence
2020-12-05 12:25:23 -05:00
Peter Kieltyka
8983e7a9da middleware: AllowContentType skips check on empty req content-length 2019-02-24 10:55:14 -05:00
Peter Kieltyka
f4d4455cd3 README: include new middlewares 2017-11-09 10:45:59 -05:00
Peter Kieltyka
c584fb8b92 middleware: new SetHeader handler to set response header key/value 2017-11-08 17:18:54 -05:00
Peter Kieltyka
a3dcde31ff middleware: new AllowContentType handler to enforce a whitelisted request Content-Type 2017-11-08 15:09:13 -05:00