This commit is contained in:
Simon
2025-09-13 06:03:00 +00:00
parent c17590ccb3
commit a096ec66f2
3 changed files with 2 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ async fn sxyprn(req: HttpRequest,
url if url != "" => url,
_ => "Error".to_string(),
};
Ok(web::HttpResponse::MovedPermanently()
Ok(web::HttpResponse::Found()
.header("Location", format!("https:{}", video_url))
.finish())
}