diff --git a/src/response.rs b/src/response.rs index 70c8811..2863d8b 100644 --- a/src/response.rs +++ b/src/response.rs @@ -15,13 +15,13 @@ pub async fn default( if ["/proxy", "/proxy/", "/x", "/x/", "/raw", "/raw/", "/nocss", "/nocss/"] .contains(&http_request.path()) { - return Ok( - HttpResponse::Ok() + return Ok(HttpResponse::Ok() .content_type("text/html") - .body(r#"
This is a proxy path. Please specify a Gemini URL without the "gemini://" to proxy. - -For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime"."#), - ); + .body(r"
This is a proxy path. Specify a Gemini URL without the protocol (gemini://
) to proxy it.
To proxy gemini://fuwn.me/uptime
, visit https://fuwn.me/proxy/fuwn.me/uptime
.
Additionally, you may visit /raw
to view the raw Gemini content, or /nocss
to view the content without CSS.