yesodweb/wai — pull request #64 by sordina (2012-04-28 09:55:38+00:00)
Title: Adding ability to override POST request method from the first field of url-encoded post-data

Hi Wai folks.

This request is just as the title describes. I've added a module - Network.Wai.Middleware.MethodOverridePost that allows the method to be overwritten from the first field of a POST request. The remaining behaviour is the same as for the methodOverride middleware.

At this point I've allowed Content-Type: application/x-www-form-urlencoded as this facilitated lazy handling of the request body. I discussed this with Michael and Greg on the Yesod mailing list.

Let me know if you would like me to change this pull-request in any way.