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 | 905c956537d0c714ddfc822df99d4580a7e426d0 (patch) | |
| tree | 7356b6bd0867134217bdb0bc7a6fd8200c78b3be /src | |
| parent | ci(earthly): remove git (diff) | |
| download | september-905c956537d0c714ddfc822df99d4580a7e426d0.tar.xz september-905c956537d0c714ddfc822df99d4580a7e426d0.zip | |
feat(response): html head variable
Diffstat (limited to 'src')
| -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>"); |