commit 3dbfc484a54c41d1759646444b439da06445060b
parent ab65d7989b0a51c72412b5023d8ca71daade0a1f
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Mon, 17 Jul 2023 18:22:56 +0200
Merge pull request #3704 from BlackDex/remove-debug-code
Remove debug code during attachment download
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/web.rs b/src/api/web.rs
@@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached<Option<NamedFile>> {
#[get("/attachments/<uuid>/<file_id>?<token>")]
async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option<NamedFile> {
- let Ok(claims) = dbg!(decode_file_download(&token)) else { return None };
+ let Ok(claims) = decode_file_download(&token) else { return None };
if claims.sub != *uuid || claims.file_id != *file_id {
return None;
}