#357 √ resolved
Paul Boone

[patch] [spec] multipart/form-data redirect error (safari)

Reported by Paul Boone | June 4th, 2008 @ 02:07 AM | in 0.9.4

When Safari is redirected to another page after posting, it resends the same header, including the content-type, but not including the actual multipart form-data. This causes a multi-part parse error.

The patch fixes this error by having Merb::Request.parse_multipart return an empty hash if the passed IO object contains no content (effectively restores the @body.size > 0 logic removed by patch #351 with code that is compatible with IO).

Adds spec for this error, as well as a spec for #351.

If there is a better way to instantiate an IO object that is not a subclass of IO, please let me know.

Comments and changes to this ticket

  • Ezra Zygmuntowicz

    Ezra Zygmuntowicz June 5th, 2008 @ 06:36 AM

    • → Milestone changed from “” to “0.9.4”
    • → State changed from “new” to “resolved”
    • → Assigned user changed from “” to “Ezra Zygmuntowicz”

    Applied thanks

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket