diff options
| author | Fuwn <[email protected]> | 2023-12-26 14:57:58 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-17 13:52:56 +0000 |
| commit | 7bdb71a5e2540c101da57514c3731027d09c6dbf (patch) | |
| tree | 4197eb5358bbb485831fbf1523f53306eca61164 /src/response.rs | |
| parent | ci(earthly): remove git (diff) | |
| download | september-7bdb71a5e2540c101da57514c3731027d09c6dbf.tar.xz september-7bdb71a5e2540c101da57514c3731027d09c6dbf.zip | |
feat(response): html head variable
Diffstat (limited to 'src/response.rs')
| -rw-r--r-- | src/response.rs | 4 |
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>"); |