diff --git a/Lib/cgi.py b/Lib/cgi.py index d45ed266eed..3a4e2359919 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -790,7 +790,7 @@ def __init__(self, fp=None, headers=None, outerboundary="", 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:]: