Skip to content

Commit

Permalink
Only call binmode when possible in the multipart parser
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Jun 24, 2008
1 parent 582e584 commit fe22d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/utils.rb
Expand Up @@ -235,7 +235,7 @@ def self.parse_multipart(env)

if filename
body = Tempfile.new("RackMultipart")
body.binmode
body.binmode if body.respond_to?(:binmode)
end

next
Expand Down

0 comments on commit fe22d0f

Please sign in to comment.