summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-25 02:40:17 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-25 02:40:17 (GMT)
commit01852838f31b612cd1ad84b87076ff25b9ff9d00 (patch)
treefdf6e8b10b9aba557964803feb65077ba620c6eb /Lib/cgi.py
parent2349015a878adc203613257fa9578dbd921ec573 (diff)
downloadcpython-01852838f31b612cd1ad84b87076ff25b9ff9d00.zip
cpython-01852838f31b612cd1ad84b87076ff25b9ff9d00.tar.gz
cpython-01852838f31b612cd1ad84b87076ff25b9ff9d00.tar.bz2
Treat "HEAD" same as "GET", so that CGI scripts won't fail.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index d45ed26..3a4e235 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -790,7 +790,7 @@ class FieldStorage:
self.strict_parsing = strict_parsing
if environ.has_key('REQUEST_METHOD'):
method = string.upper(environ['REQUEST_METHOD'])
- if method == 'GET':
+ if method == 'GET' or method == 'HEAD':
if environ.has_key('QUERY_STRING'):
qs = environ['QUERY_STRING']
elif sys.argv[1:]: