Following up on r1804005, don't return the "response is truncated" error
code for an empty chunk size line.

While such empty line could be an indication of the truncated response,
it's not necessarily so.  The only thing we can say for sure in this
case is that the response is ill-formed, so tweak the code to return
an SERF_ERROR_BAD_HTTP_RESPONSE error.

* buckets/dechunk_buckets.c
  (wait_for_chunk): Remove an explicit check for an empty line, as this
   case is already handled below, after the apr_strtoi64() call.

* test/test_buckets.c
  (test_response_body_chunked_truncated_with_crlf): Rename this test to ...
  (test_response_body_chunked_bogus_crlf): ...this. Expect to receive
   the SERF_ERROR_BAD_HTTP_RESPONSE error.
  (test_buckets): Track the test rename.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1804016 13f79535-47bb-0310-9956-ffa450edef68
2 files changed