mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Update to latest versions of hyper and http-body (#1882)
Co-authored-by: Michael Scofield <[email protected]> Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
co-authored by
Michael Scofield
Jonas Platte
parent
2f4720907a
commit
43b14a5f02
@@ -53,7 +53,7 @@ async fn save_request_body(
|
||||
Path(file_name): Path<String>,
|
||||
request: Request,
|
||||
) -> Result<(), (StatusCode, String)> {
|
||||
stream_to_file(&file_name, request.into_body()).await
|
||||
stream_to_file(&file_name, request.into_body().into_data_stream()).await
|
||||
}
|
||||
|
||||
// Handler that returns HTML for a multipart form.
|
||||
|
||||
Reference in New Issue
Block a user