1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-25 08:52:42 +01:00
actix-web/src/client
Jan Niehusmann 72bc1546c4 fix end-of-stream handling in parse_payload
parse_payload can be called with a pre-filled buf.

In this case, it's totaly fine for read_from_io to return
sync::Ready(0) while buf is not empty. This is not an
PayloadError::Incomplete.

So, move the check for PayloadError::Incomplete down to the
decoding code: If the decoder is not ready, but the input stream
is finished, PayloadError::Incomplete will be returned.
2018-04-12 09:47:32 +02:00
..
connector.rs fix stats for tls and alpn features 2018-04-11 16:34:01 -07:00
mod.rs add clinet connector stats 2018-04-11 16:11:11 -07:00
parser.rs fix end-of-stream handling in parse_payload 2018-04-12 09:47:32 +02:00
pipeline.rs docs(client): Minor formatting and spelling fixes in module docs 2018-04-07 17:00:57 +02:00
request.rs clippy warnings 2018-04-09 14:25:30 -07:00
response.rs clippy warnings 2018-04-09 14:25:30 -07:00
writer.rs clippy warnings 2018-04-09 14:25:30 -07:00