Description

ContentTypeCheckerMiddleware verifies the request Content-Type header and returns a StatusUnsupportedMediaType (415) HTTP error response if it's incorrect. The expected Content-Type is 'application/json' if the content is non-null. Note: If a charset parameter exists, it MUST be UTF-8.

ContentTypeCheckerMiddleware is referenced in 3 repositories

github.com/ant0ine/go-json-rest github.com/marconi/boltapi github.com/SierraSoftworks/Infrared