Kaydet (Commit) 01852838 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 2349015a
...@@ -790,7 +790,7 @@ class FieldStorage: ...@@ -790,7 +790,7 @@ class FieldStorage:
self.strict_parsing = strict_parsing self.strict_parsing = strict_parsing
if environ.has_key('REQUEST_METHOD'): if environ.has_key('REQUEST_METHOD'):
method = string.upper(environ['REQUEST_METHOD']) method = string.upper(environ['REQUEST_METHOD'])
if method == 'GET': if method == 'GET' or method == 'HEAD':
if environ.has_key('QUERY_STRING'): if environ.has_key('QUERY_STRING'):
qs = environ['QUERY_STRING'] qs = environ['QUERY_STRING']
elif sys.argv[1:]: elif sys.argv[1:]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment