1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-02-25 13:22:50 +01:00
actix-web/actix-multipart
Alexander Larsson 6a672c9097 actix-multipart: Fix multipart boundary reading (#1189)
* actix-multipart: Fix multipart boundary reading

If we're not ready to read the first line after the multipart field
(which should be a "\r\n" line) then return NotReady instead of Ready(None)
so that we will get called again to read that line.

Without this I was getting MultipartError::Boundary from read_boundary()
because it got the "\r\n" line instead of the boundary.

* actix-multipart: Test handling of NotReady

Use a stream that reports NoReady and does partial reads in the test_stream
test. This works now, but failed before the previous commit.
2019-12-07 19:58:38 +06:00
..
2019-09-12 21:58:08 +06:00
2019-06-01 17:25:29 +06:00
2019-06-01 17:25:29 +06:00
2019-04-29 20:47:21 -07:00

Multipart support for actix web framework Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

Documentation & community resources