[Libevent-users] [patch] parse noncompliant http headers
Charles Kerr
charles at rebelbase.com
Mon Aug 20 16:19:28 EDT 2007
I've been adapting the bittorrent client Transmission to use libevent as
its IO backend. Unfortunately some of my users have reported that their
trackers send noncompliant HTTP responses w.r.t using "\n" instead of
"\r\n" as a line break. svn r400's evhttp_parse_lines() can't handle
this, which causes libevent's http response parsing to fail.
Attached is a patch to r400's evhttp_parse_lines() to handle nonstandard
linebreaks gracefully by using evbuffer_readline().
Charles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http.patch
Type: text/x-patch
Size: 1860 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070820/585f04a9/http.bin
More information about the Libevent-users
mailing list