Keep passwords out of endpoint responses while preserving v1 schema
This commit is contained in:
parent
aef58d133b
commit
c7ceb4113b
4 changed files with 37 additions and 27 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue