add Kcar::Parser#body_bytes_left= setter method
commitb583fe84c3e2174f143d2412b0b93eeb18e5aeb8
authorEric Wong <normalperson@yhbt.net>
Fri, 26 Oct 2012 09:24:46 +0000 (26 09:24 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 26 Oct 2012 09:30:18 +0000 (26 09:30 +0000)
tree0a77aef3ff8fbe3c18035ff7dfb1df1c056720b1
parent7a51fde712fdbf40db080c30f91caf59a9dd9d7a
add Kcar::Parser#body_bytes_left= setter method

This allows us to properly get body_eof? to return true
in Kcar::Response for unchunked responses.
ext/kcar/kcar.rl
lib/kcar/response.rb
test/test_response.rb