diff --git a/actix-multipart/src/lib.rs b/actix-multipart/src/lib.rs index 43eb048ca..87347fd8d 100644 --- a/actix-multipart/src/lib.rs +++ b/actix-multipart/src/lib.rs @@ -6,3 +6,7 @@ mod server; pub use self::error::MultipartError; pub use self::server::{Field, Multipart}; + +pub mod headers { + pub use actix_web::http::header::{ContentDisposition, DispositionType, DispositionParam}; +} diff --git a/actix-multipart/src/server.rs b/actix-multipart/src/server.rs index a7c787f46..4f73b044c 100644 --- a/actix-multipart/src/server.rs +++ b/actix-multipart/src/server.rs @@ -12,11 +12,12 @@ use mime; use actix_web::error::{ParseError, PayloadError}; use actix_web::http::header::{ - self, ContentDisposition, HeaderMap, HeaderName, HeaderValue, + self, HeaderMap, HeaderName, HeaderValue, }; use actix_web::http::HttpTryFrom; use crate::error::MultipartError; +use crate::headers::ContentDisposition; const MAX_HEADERS: usize = 32;