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

This commit is contained in:
Dietmar Maurer committed 2019-01-17 12:43:29 +01:00
1 parent 06aeb76a5c
commit 83bdac1e3b
5 files changed
+18 -6

No files matched your search

+1 -1
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)));