diff options
author | Guido van Rossum <guido@python.org> | 1998-06-25 02:40:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-25 02:40:17 (GMT) |
commit | 01852838f31b612cd1ad84b87076ff25b9ff9d00 (patch) | |
tree | fdf6e8b10b9aba557964803feb65077ba620c6eb /Lib/cgi.py | |
parent | 2349015a878adc203613257fa9578dbd921ec573 (diff) | |
download | cpython-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-x | Lib/cgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:]: |