Skip to content
Permalink
Browse files

Fix multipart uploads on 1.9

  • Loading branch information...
raggi committed Apr 28, 2009
1 parent 40eba67 commit 44ed4640f077504a49b7f1cabf8d6ad7a13f6441
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rack/utils.rb
@@ -1,3 +1,5 @@
# coding=binary

require 'set'
require 'tempfile'

@@ -351,7 +353,7 @@ def self.parse_multipart(env)
input = env['rack.input']
input.rewind

boundary_size = boundary.size + EOL.size
boundary_size = Utils.bytesize(boundary) + EOL.size
bufsize = 16384

content_length -= boundary_size

9 comments on commit 44ed464

@josh

This comment has been minimized.

Copy link
Contributor

josh replied Apr 29, 2009

Omg, that was its! I totally looked over it.

Can you please cherry-pick this into 1-0-stable.

@raggi

This comment has been minimized.

Copy link
Member Author

raggi replied Apr 29, 2009

Sure

@minad

This comment has been minimized.

Copy link

minad replied Sep 15, 2009

When do you release a new rack version? This patch is still not included in a stable version

@co-hack

This comment has been minimized.

Copy link

co-hack replied Sep 16, 2009

+1 to a 1.0.1 release with this patch $)

@giddie

This comment has been minimized.

Copy link

giddie replied Sep 17, 2009

Yes, please release a 1.0.1 asap. This is a pretty important fix!

@sporkmonger

This comment has been minimized.

Copy link

sporkmonger replied Sep 18, 2009

Also +1 to getting this out ASAP.

@jasonmadigan

This comment has been minimized.

Copy link

jasonmadigan replied Sep 30, 2009

+1, this is pretty important.

@josh

This comment has been minimized.

@geetarista

This comment has been minimized.

Copy link

geetarista replied Oct 14, 2009

+1 for this one. Otherwise paperclip uploads die in Ruby 1.9.

Please sign in to comment.
You can’t perform that action at this time.