diff options
author | raggi <jftucker@gmail.com> | 2009-04-29 00:15:53 +0100 |
---|---|---|
committer | raggi <jftucker@gmail.com> | 2009-04-29 00:15:53 +0100 |
commit | 44ed4640f077504a49b7f1cabf8d6ad7a13f6441 (patch) | |
tree | a63bce0f3944e01a63f1481271180c9a41a8de04 | |
parent | 40eba67d30a660f748692bcfe7fcb758a2c8357a (diff) | |
download | rack-44ed4640f077504a49b7f1cabf8d6ad7a13f6441.tar.gz |
Fix multipart uploads on 1.9
-rw-r--r-- | lib/rack/utils.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb index 1538acf0..3d268490 100644 --- a/lib/rack/utils.rb +++ b/lib/rack/utils.rb @@ -1,3 +1,5 @@ +# coding=binary + require 'set' require 'tempfile' @@ -351,7 +353,7 @@ module Rack 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 |