summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-07 04:08:03 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-07 04:08:03 (GMT)
commit9228cbd0844f9f0a641832b214a47006c77333bb (patch)
tree097c9997759dd75c6c60fec375f1e54267c33457 /Lib/CGIHTTPServer.py
parent391c8b4ea2fb688f2c0184ee219723d837732937 (diff)
downloadcpython-9228cbd0844f9f0a641832b214a47006c77333bb.zip
cpython-9228cbd0844f9f0a641832b214a47006c77333bb.tar.gz
cpython-9228cbd0844f9f0a641832b214a47006c77333bb.tar.bz2
Patch by Jeff Rush:
In CGIHTTPServer.py, the list of acceptable formats is -split- on spaces but -joined- on commas, resulting in double commas in the joined text. It appears harmless to my browser but ought to be fixed anyway. 'A, B, C' -> 'A,', 'B,', 'C,' -> 'A,,B,,C'
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 24bdeef..806ef57 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -145,7 +145,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if line[:1] in string.whitespace:
accept.append(string.strip(line))
else:
- accept = accept + string.split(line[7:])
+ accept = accept + string.split(line[7:], ',')
env['HTTP_ACCEPT'] = string.joinfields(accept, ',')
ua = self.headers.getheader('user-agent')
if ua: