testing found
This commit is contained in:
@@ -51,7 +51,7 @@ async fn noodlemagazine(req: HttpRequest,
|
|||||||
url if url != "" => url,
|
url if url != "" => url,
|
||||||
_ => "Error".to_string(),
|
_ => "Error".to_string(),
|
||||||
};
|
};
|
||||||
Ok(web::HttpResponse::PermanentRedirect()
|
Ok(web::HttpResponse::Found()
|
||||||
.header("Location", format!("{}", video_url))
|
.header("Location", format!("{}", video_url))
|
||||||
.finish())
|
.finish())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user