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
commit7bdb71a5e2540c101da57514c3731027d09c6dbf (patch)
tree4197eb5358bbb485831fbf1523f53306eca61164 /src
parentci(earthly): remove git (diff)
downloadseptember-7bdb71a5e2540c101da57514c3731027d09c6dbf.tar.xz
september-7bdb71a5e2540c101da57514c3731027d09c6dbf.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>");