1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

multipart boundary extraction

This commit is contained in:
Nikolay Kim
2017-10-22 09:30:05 -07:00
parent f85925a652
commit 6ad048d445
2 changed files with 32 additions and 4 deletions

View File

@@ -191,7 +191,7 @@ impl HttpRequest {
///
/// Content-type: multipart/form-data;
pub fn multipart(&self, payload: Payload) -> Result<Multipart, MultipartError> {
Ok(Multipart::new(Multipart::boundary(self)?, payload))
Ok(Multipart::new(Multipart::boundary(&self.headers)?, payload))
}
/// Parse `application/x-www-form-urlencoded` encoded body.