fixes?
This commit is contained in:
@@ -28,8 +28,8 @@ async fn sxyprn(req: HttpRequest,
|
||||
url if url != "" => url,
|
||||
_ => "Error".to_string(),
|
||||
};
|
||||
Ok(web::HttpResponse::Found()
|
||||
.header("Location", video_url)
|
||||
Ok(web::HttpResponse::MovedPermanently()
|
||||
.header("Location", format!("https:{}", video_url))
|
||||
.finish())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user