miyagawa/Plack-Middleware-Debug — pull request #19 by bluefeet (2014-07-29 18:01:53+00:00)
Title: The Parameters panel seems to break POSTs in certain situations.

I've got this middleware wrapped around my Catalyst app and when I do a POST I get this error:

Bad Content-Length: maybe client disconnect? (120 bytes remaining) at /usr/local/share/perl/5.14.2/Plack/Request.pm line 286.

I was able to narrow this down the the Parameters panel, and further to the "post" element. I was also able to find someone else with this issue:

http://tickets.musicbrainz.org/browse/MBS-4499

This fix bypasses the issue. I have no idea *why* retrieving the request body in the run callback, I expect Catalyst is doing something to invalidate the body.