diff options
author | Guido van Rossum <guido@python.org> | 1998-06-25 02:40:17 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-25 02:40:17 +0000 |
commit | 01852838f31b612cd1ad84b87076ff25b9ff9d00 (patch) | |
tree | fdf6e8b10b9aba557964803feb65077ba620c6eb /Lib/cgi.py | |
parent | 2349015a878adc203613257fa9578dbd921ec573 (diff) | |
download | cpython-git-01852838f31b612cd1ad84b87076ff25b9ff9d00.tar.gz |
Treat "HEAD" same as "GET", so that CGI scripts won't fail.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py index d45ed266ee..3a4e235991 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:]: |