Handle EOFError exception from malformed multipart in MethodOverride middleware #282

Merged
merged 2 commits into from Dec 17, 2011

Conversation

Projects
None yet
2 participants
Contributor

cgriego commented Dec 7, 2011

Rack::Request#POST will raise an EOFError when parsing invalid multipart form data (which Rack::Request#params will handle and ignore), but the MethodOverride middleware, which calls Request#POST, doesn't handle the exception, usually letting it propagate out to the server/handler.

raggi added a commit that referenced this pull request Dec 17, 2011

Merge pull request #282 from getaroom/master
Handle EOFError exception from malformed multipart in MethodOverride middleware

@raggi raggi merged commit 4a9e22d into rack:master Dec 17, 2011

Owner

raggi commented Dec 17, 2011

My bad! good catch! Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment