From 01852838f31b612cd1ad84b87076ff25b9ff9d00 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jun 1998 02:40:17 +0000 Subject: Treat "HEAD" same as "GET", so that CGI scripts won't fail. --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cgi.py') diff --git a/Lib/cgi.py b/Lib/cgi.py index d45ed266eed..3a4e2359919 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:]: -- cgit v1.2.3