server/rest: fix type ambiguity
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d43c407a00
commit
eeff085d9d
@ -315,8 +315,9 @@ async fn get_request_parameters<S: 'static + BuildHasher + Send>(
|
||||
}
|
||||
}
|
||||
|
||||
let body = req_body
|
||||
.map_err(|err| http_err!(BAD_REQUEST, "Promlems reading request body: {}", err))
|
||||
let body = TryStreamExt::map_err(req_body, |err| {
|
||||
http_err!(BAD_REQUEST, "Problems reading request body: {}", err)
|
||||
})
|
||||
.try_fold(Vec::new(), |mut acc, chunk| async move {
|
||||
// FIXME: max request body size?
|
||||
if acc.len() + chunk.len() < 64 * 1024 {
|
||||
|
Loading…
Reference in New Issue
Block a user