From 8397eab40cc42387a341bf1b2af4d90fcdf96ace Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 23 Jul 2024 17:46:30 -0700 Subject: [PATCH] feat(response): update proxy documentation --- src/response.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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"

September

+

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.

+ ")); } let mut configuration = configuration::Configuration::new();