From: Guido van Rossum Date: Mon, 7 Dec 1998 04:08:03 +0000 (+0000) Subject: Patch by Jeff Rush: X-Git-Tag: v1.5.2b1~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9228cbd0844f9f0a641832b214a47006c77333bb;p=thirdparty%2FPython%2Fcpython.git 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' --- diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 24bdeef79745..806ef575556f 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: