1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-10 20:22:07 +00:00
actix-web/src
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
..
client fix end-of-stream handling in parse_payload 2018-04-12 09:47:32 +02:00
header simplify http response construction; deprecate httpcodes 2018-03-30 23:07:33 -07:00
middleware update cors doc string 2018-04-09 21:39:32 -07:00
server remove reference to master 2018-04-10 10:29:10 -07:00
ws clippy warns 2018-04-04 20:24:09 -07:00
application.rs for NamedFile process etag and last modified only if status code is 200 2018-04-10 10:57:53 -07:00
body.rs clippy warns 2018-04-04 20:24:09 -07:00
context.rs update doc strings 2018-03-29 15:00:18 -07:00
de.rs add extractor for Binary type; move all extractors to separate module 2018-04-02 14:55:42 -07:00
error.rs add String and Bytes extractor 2018-04-02 16:19:18 -07:00
extractor.rs update doc strings for extractors 2018-04-06 10:24:57 -07:00
fs.rs Rename HttpRequest::without_state into drop_state and make it public 2018-04-11 22:41:06 +03:00
handler.rs Rename HttpRequest::without_state into drop_state and make it public 2018-04-11 22:41:06 +03:00
helpers.rs rename Application 2018-03-31 00:16:55 -07:00
httpcodes.rs simplify http response construction; deprecate httpcodes 2018-03-30 23:07:33 -07:00
httpmessage.rs add extractor for Binary type; move all extractors to separate module 2018-04-02 14:55:42 -07:00
httprequest.rs fix stats for tls and alpn features 2018-04-11 16:34:01 -07:00
httpresponse.rs clippy warnings 2018-04-09 14:25:30 -07:00
info.rs spelling check 2018-03-24 09:35:52 +03:00
json.rs update doc strings for extractors 2018-04-06 10:24:57 -07:00
lib.rs update links 2018-04-10 19:27:09 -07:00
multipart.rs clippy warnings 2018-04-09 14:25:30 -07:00
param.rs allow primitive types for Path extractor 2018-03-31 17:12:08 -07:00
payload.rs add path and query extractors 2018-03-26 15:58:30 -07:00
pipeline.rs match resource path before executing middlewares 2018-04-02 10:27:37 -07:00
pred.rs cleanup doc tests 2018-04-09 10:40:12 -07:00
resource.rs for NamedFile process etag and last modified only if status code is 200 2018-04-10 10:57:53 -07:00
route.rs App::route method 2018-04-06 21:18:42 -07:00
router.rs match resource path before executing middlewares 2018-04-02 10:27:37 -07:00
test.rs Rename HttpRequest::without_state into drop_state and make it public 2018-04-11 22:41:06 +03:00
with.rs Rename HttpRequest::without_state into drop_state and make it public 2018-04-11 22:41:06 +03:00