summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index a55c9ca..c380f9a 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -1027,7 +1027,7 @@ class CGI
buf = buf.sub(/\A((?:.|\n)*?)(?:#{EOL})?#{boundary}(#{EOL}|--)/n) do
body.print $1
- if "--" == $2
+ if "--" == $2 or EOL == $2
content_length = -1
end
""