rgrove/combohandler — pull request #10 by evocateur (2012-06-07 23:17:09+00:00)
Title: Stricter, up-front MIME type filtering.

* Deny requests with non-whitelisted or differing MIME types.
* Short-circuit requests that have been truncated or otherwise mangled.
* Tests!

Writing it as separate middleware did occur to me (extracting the MIME_TYPE config along with it), but for expediency's sake, it's inline.