1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

more tests

This commit is contained in:
Nikolay Kim
2017-10-22 09:45:53 -07:00
parent 6ad048d445
commit 71f7606baf
2 changed files with 19 additions and 3 deletions

View File

@@ -708,6 +708,15 @@ fn test_boundary() {
_ => panic!("should not happen"),
}
let mut headers = HeaderMap::new();
headers.insert(
header::CONTENT_TYPE,
header::HeaderValue::from_static("multipart/mixed"));
match Multipart::boundary(&headers) {
Err(MultipartError::Boundary) => (),
_ => panic!("should not happen"),
}
let mut headers = HeaderMap::new();
headers.insert(
header::CONTENT_TYPE,