mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
multipart field is stream of bytes
This commit is contained in:
@ -11,5 +11,4 @@ path = "src/main.rs"
|
||||
env_logger = "*"
|
||||
futures = "0.1"
|
||||
actix = "^0.3.1"
|
||||
#actix-web = { git = "https://github.com/actix/actix-web.git" }
|
||||
actix-web = { path = "../../" }
|
||||
actix-web = { git = "https://github.com/actix/actix-web.git" }
|
||||
|
@ -28,7 +28,7 @@ fn index(mut req: HttpRequest) -> Box<Future<Item=HttpResponse, Error=Error>>
|
||||
field.map_err(Error::from)
|
||||
.map(|chunk| {
|
||||
println!("-- CHUNK: \n{}",
|
||||
std::str::from_utf8(&chunk.0).unwrap());})
|
||||
std::str::from_utf8(&chunk).unwrap());})
|
||||
.fold((), |_, _| result::<_, Error>(Ok(()))))
|
||||
},
|
||||
multipart::MultipartItem::Nested(mp) => {
|
||||
|
Reference in New Issue
Block a user