summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:]: