This commit is contained in:
parent
f28d65810d
commit
b62b01190e
|
@ -139,7 +139,7 @@ pub async fn proxy_handler(
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
warn!("cannot find stored path for: {}", filekey);
|
warn!("cannot find stored path for: {}", filekey);
|
||||||
let ct_parts = content_type.split("/").collect::<Vec<&str>>();
|
let ct_parts = content_type.split("/").collect::<Vec<&str>>();
|
||||||
let filepath = format!("unsafe/production/{}/{}", ct_parts[0], filekey);
|
let filepath = format!("production/{}/{}", ct_parts[0], filekey);
|
||||||
|
|
||||||
match check_file_exists(&state.storj_client, &state.bucket, &filepath).await? {
|
match check_file_exists(&state.storj_client, &state.bucket, &filepath).await? {
|
||||||
true => {
|
true => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user