]> granicus.if.org Git - libevent/commit
https-client was putting newlines at 256-byte boundaries
authorPatrick Pelletier <code@funwithsoftware.org>
Tue, 26 Feb 2013 07:14:26 +0000 (23:14 -0800)
committerPatrick Pelletier <code@funwithsoftware.org>
Thu, 28 Feb 2013 05:22:03 +0000 (21:22 -0800)
commit42d7441ac43ded0774ed089f6dc414ae5225e72f
tree89c3fd67ef98fde8ea4c92cf0f9ebc34fc18e2b0
parentbf31fa5d30d7fbe5d224ee4575cf5e10d1265933
https-client was putting newlines at 256-byte boundaries

presumably this was meant to put a ">" before every line, but that
isn't what it does, since evbuffer_remove is simply returning
fixed-size chunks.  So, when retrieving a document of more than 256
bytes (e. g. any nontrivial document), we got "> " and newlines thrown
in at very arbitrary places.
sample/https-client.c