1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-23 16:21:06 +01:00
actix-web/actix-multipart
Matt Gathu 37c76a39ab
Fix Multipart consuming payload before header checks (#1704)
* Fix Multipart consuming payload before header checks

What
--
Split up logic in the constructor into two functions:

- **from_boundary:** build Multipart from boundary and stream
- **from_error:** build Multipart for MultipartError

Also we make the `boundary`, `from_boundary`, `from_error`  methods public within the crate so that we can use them in the extractor.

The extractor is then able to perform header checks and only consume the
payload if the checks pass.

* Add tests

* Add payload consumption test

Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-09-25 14:50:37 +01:00
..
src Fix Multipart consuming payload before header checks (#1704) 2020-09-25 14:50:37 +01:00
Cargo.toml the big three point oh (#1668) 2020-09-11 13:50:10 +01:00
CHANGES.md Fix Multipart consuming payload before header checks (#1704) 2020-09-25 14:50:37 +01:00
LICENSE-APACHE add license files 2019-06-01 17:25:29 +06:00
LICENSE-MIT add license files 2019-06-01 17:25:29 +06:00
README.md bump msrv in ci and readme 2020-05-13 01:57:37 +01:00

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

Documentation & community resources