Treat "HEAD" same as "GET", so that CGI scripts won't fail.

This commit is contained in:
Guido van Rossum 1998-06-25 02:40:17 +00:00
parent 2349015a87
commit 01852838f3
1 changed files with 1 additions and 1 deletions

View File

@ -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:]: