Keep passwords out of endpoint responses while preserving v1 schema

This commit is contained in:
xenofem 2022-08-16 16:46:39 -04:00
parent aef58d133b
commit c7ceb4113b
4 changed files with 37 additions and 27 deletions

View file

@ -107,7 +107,7 @@ async fn handle_download(
let store = data.state.read().await;
let info = store.0.get(code);
let info = if let Some(i) = info {
i.clone()
i.file.clone()
} else {
return not_found(req, data, true);
};
@ -165,7 +165,7 @@ async fn download_info(
let store = data.state.read().await;
let info = store.0.get(code);
let info = if let Some(i) = info {
i.clone()
i.file.clone()
} else {
return not_found(req, data, true);
};