summaryrefslogtreecommitdiff
blob: a563c651cea4e8f49313aabd8813cbd05e97e280 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lib/cgi.rb.orig	2006-08-22 18:38:19.000000000 +0900
+++ lib/cgi.rb	2006-11-03 00:18:53.000000000 +0900
@@ -1018,7 +1018,7 @@ class CGI
               else
                 stdinput.read(content_length)
               end
-          if c.nil?
+          if c.nil? || c.empty?
             raise EOFError, "bad content body"
           end
           buf.concat(c)