aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-26 14:57:58 +0000
committerFuwn <[email protected]>2024-03-17 13:52:56 +0000
commit905c956537d0c714ddfc822df99d4580a7e426d0 (patch)
tree7356b6bd0867134217bdb0bc7a6fd8200c78b3be /src
parentci(earthly): remove git (diff)
downloadseptember-905c956537d0c714ddfc822df99d4580a7e426d0.tar.xz
september-905c956537d0c714ddfc822df99d4580a7e426d0.zip
feat(response): html head variable
Diffstat (limited to 'src')
-rw-r--r--src/response.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/response.rs b/src/response.rs
index 4f7c693..911880f 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -178,6 +178,10 @@ For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".<
);
}
+ if let Ok(head) = var("HEAD") {
+ html_context.push_str(&head);
+ }
+
// Add a title to HTML response
html_context.push_str(&format!("<title>{gemini_title}</title>"));
html_context.push_str("</head><body>");