api3/admin/datastore/upload_catar.rs: verify content type ("application/x-proxmox-backup-catar")

This commit is contained in:
Dietmar Maurer 2019-01-17 12:43:29 +01:00
parent 90e1d858e0
commit 6e219aefd3

View File

@ -208,7 +208,7 @@ fn handle_upload_api_request(
}
};
match (info.handler)(req_body, params, info) {
match (info.handler)(parts, req_body, params, info) {
Ok(future) => future,
Err(err) => {
let resp = (formatter.format_result)(Err(Error::from(err)));