commit | 01852838f31b612cd1ad84b87076ff25b9ff9d00 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jun 25 02:40:17 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jun 25 02:40:17 1998 +0000 |
tree | fdf6e8b10b9aba557964803feb65077ba620c6eb | |
parent | 2349015a878adc203613257fa9578dbd921ec573 [diff] |
Treat "HEAD" same as "GET", so that CGI scripts won't fail.
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 @@ 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:]: