undefined method `index' for #<HTTPX::Transcoder::Chunker::Decoder
Hiya, I'm running into this error: ```ruby httpx-1.7.5/lib/httpx/parser/http1.rb:58:in `parse_headline': undefined method `index' for #<HTTPX::Transcoder::Chunker::Decoder:0x000000011b8a98e8 @buffer="HTTP/1.1 200 OK\r\nX-elastic-product: Elasticsearch\r\ncontent-type: application/json\r\ncontent-encoding: gzip\r\ncontent-length: 47\r\n\r\n\x1F\x8B\b\x00\x00\x00\x00\x00\x00\x00\xAAVJL\xCE\xCE\xCB/\xCFIMIOMQ\xB2*)*M\xAD\x05\x00\x00\x00\xFF\xFF\x03\x00\xD3H\xF4\xF1\x15\x00\x00\x00", @chunk_buffer="", @finished=false, @state=:length, @trailers=false> (NoMethodError) ``` Which seems to be caused by a combination of the connection using `transfer-encoding: chunked` but not having a body. The specific case I ran into is with deleting indices in succession via [`Elasticsearch::Client`](https://github.com/elastic/elasticsearch-ruby). Would a reasonable fix be to change the `reset!` method to do... ```ruby def reset! # etc @buffer.to_s.clear end ``` So if `parse_data` is never called, we still convert the `HTTPX::Transcoder::Chunker::Decoder` back to a string?
issue