response: fix handling of pipelined identity responses
commit62621af7c8724f5cc5cc3a6dfcd47eb6654286a5
authorEric Wong <normalperson@yhbt.net>
Sat, 24 Jul 2010 23:18:14 +0000 (24 23:18 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 25 Jul 2010 00:00:25 +0000 (25 00:00 +0000)
tree62a16915f33891bb82afd6bd930f67eb7f8136e8
parent35e3ad8134c39902b502e20d88246be2751767e1
response: fix handling of pipelined identity responses

When parsing a stream of multiple responses (when HTTP
pipelining is enabled), we did not properly reset our
internal buffer, causing failures when parsing the
second response.
lib/kcar/response.rb
test/test_response.rb