1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-01-02 05:18:44 +00:00

Expose ContentDisposition in actix-multipart to fix broken doc link

This commit is contained in:
Zac Pullar-Strecker 2019-10-02 10:38:45 +13:00
parent f81ae37677
commit e90d71d16c
2 changed files with 6 additions and 1 deletions

View file

@ -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};
}

View file

@ -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;