From: Ben Darnell Date: Tue, 20 Apr 2010 00:07:20 +0000 (-0700) Subject: Fix header parsing in httpclient for headers whose value contains ':' X-Git-Tag: v1.0.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40ac8d362a2f9d0f076ea1ba4d4ccec0b8ee274a;p=thirdparty%2Ftornado.git Fix header parsing in httpclient for headers whose value contains ':' --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 2bee8973e..658513eb7 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -438,7 +438,7 @@ def _curl_header_callback(headers, header_line): return if header_line == "\r\n": return - parts = header_line.split(":") + parts = header_line.split(":", 1) if len(parts) != 2: _log.warning("Invalid HTTP response header line %r", header_line) return