mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
chore: update actix-* deps
This commit is contained in:
@@ -42,5 +42,5 @@ lazy_static! {
|
||||
pub async fn login() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*INDEX)
|
||||
.body(&**INDEX)
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@ lazy_static! {
|
||||
pub async fn join() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*INDEX)
|
||||
.body(&**INDEX)
|
||||
}
|
||||
|
||||
@@ -56,11 +56,11 @@ async fn error(path: web::Path<usize>) -> impl Responder {
|
||||
let resp = match path.into_inner() {
|
||||
500 => HttpResponse::InternalServerError()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*INTERNAL_SERVER_ERROR_BODY),
|
||||
.body(&**INTERNAL_SERVER_ERROR_BODY),
|
||||
|
||||
_ => HttpResponse::InternalServerError()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*UNKNOWN_ERROR_BODY),
|
||||
.body(&**UNKNOWN_ERROR_BODY),
|
||||
};
|
||||
|
||||
resp
|
||||
|
||||
@@ -104,7 +104,7 @@ async fn delete_account() -> impl Responder {
|
||||
.unwrap();
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&page)
|
||||
.body(page)
|
||||
}
|
||||
|
||||
#[my_codegen::get(
|
||||
@@ -117,5 +117,5 @@ async fn update_secret() -> impl Responder {
|
||||
.unwrap();
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&page)
|
||||
.body(page)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ impl<'a> Default for AdvanceIndexPage<'a> {
|
||||
pub async fn advance() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*ADVANCE_INDEX)
|
||||
.body(&**ADVANCE_INDEX)
|
||||
}
|
||||
|
||||
#[derive(TemplateOnce, Clone)]
|
||||
@@ -86,5 +86,5 @@ impl<'a> Default for EasyIndexPage<'a> {
|
||||
pub async fn easy() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&*EASY_INDEX)
|
||||
.body(&**EASY_INDEX)
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@ pub async fn delete_sitekey(path: web::Path<String>) -> impl Responder {
|
||||
.unwrap();
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body(&page)
|
||||
.body(page)
|
||||
}
|
||||
|
||||
@@ -50,5 +50,5 @@ lazy_static! {
|
||||
pub async fn sitemap() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
.content_type("application/xml; charset=utf-8")
|
||||
.body(&*INDEX)
|
||||
.body(&**INDEX)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user