]> git.ipfire.org Git - thirdparty/tornado.git/commit
Be less picky about line endings in headers in httpclient.
authorBen Darnell <ben@bendarnell.com>
Mon, 9 Aug 2010 21:33:32 +0000 (14:33 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 9 Aug 2010 21:33:32 +0000 (14:33 -0700)
commitcd888f2f00228d8154c3ec043a1488dad5e07803
treead8cf3fa28243e221e6a6d3f8ad4fcf37a26b40b
parent00ce7d4d996ff4c5e19748a5582142fa53de33cd
Be less picky about line endings in headers in httpclient.

HTTP requires that lines end with \r\n, but some buggy servers (including
news.ycombinator.com) just use \n.  Libcurl tolerates this and sends the
line as-is to the header callback, so we need to be prepared to handle
either form.
tornado/httpclient.py