summary refs log tree commit
path: root/lib/rack/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/utils.rb')
-rw-r--r--lib/rack/utils.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 05c7734f..606e0cd5 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -482,6 +482,9 @@ module Rack
               body << buf.slice!(0, i)
               buf.slice!(0, boundary_size+2)
 
+              # If sliced exactly at boundary, let's move:
+              next if buf.empty? && ($1 == EOL)
+
               content_length = -1  if $1 == "--"
             end