diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 24bdeef7974..806ef575556 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -145,7 +145,7 @@ def run_cgi(self): 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: