quixote http_request.py,1.50,1.51
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv20350
Modified Files:
http_request.py
Log Message:
Style cleanups (no behavior changes).
Index: http_request.py
===================================================================
RCS file: /home/cvs/quixote/http_request.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- http_request.py 2 Oct 2002 20:28:18 -0000 1.50
+++ http_request.py 14 Oct 2002 23:00:11 -0000 1.51
@@ -109,13 +109,13 @@
# sets this environment variable to "0" for non-SSL requests
# (most web servers -- well, Apache at least -- simply don't set
# it in that case).
- if (environ.get('HTTPS', "off").lower() == "on" or
+ if (environ.get('HTTPS', 'off').lower() == 'on' or
environ.get('SERVER_PORT_SECURE', '0') != '0'):
self.scheme = "https"
else:
self.scheme = "http"
- k = self.environ.get('HTTP_COOKIE','')
+ k = self.environ.get('HTTP_COOKIE', '')
if k:
self.cookies = parse_cookie(k)
else:
@@ -126,7 +126,7 @@
# is "/cgi-bin/q.py/foo/bar". The following code fixes
# PATH_INFO to the expected value "/foo/bar".
web_server = environ.get('SERVER_SOFTWARE', 'unknown')
- if (web_server.find('Microsoft-IIS') != -1):
+ if web_server.find('Microsoft-IIS') != -1:
script = environ['SCRIPT_NAME']
path = environ['PATH_INFO']
if path.startswith(script):
@@ -147,7 +147,7 @@
def process_inputs (self):
"""Process request inputs.
"""
- method = self.environ.get('REQUEST_METHOD','GET')
+ method = self.environ.get('REQUEST_METHOD', 'GET')
if method != 'GET':
# Avoid consuming the contents of stdin unless we're sure