aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-23 10:25:42 +0000
committerFuwn <[email protected]>2024-06-23 10:25:54 +0000
commit37d2d37b9c9491bb4b95f1206a609bbda5fa9910 (patch)
treedab55e42bce6e3b3e2781e33906addc81835a625 /src
parentdocs(readme): add sample screenshot (diff)
downloadmomoka-37d2d37b9c9491bb4b95f1206a609bbda5fa9910.tar.xz
momoka-37d2d37b9c9491bb4b95f1206a609bbda5fa9910.zip
feat(gemini): support netcat-style single newline client message
Diffstat (limited to 'src')
-rw-r--r--src/gemini.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gemini.gleam b/src/gemini.gleam
index 9cd0884..9c07391 100644
--- a/src/gemini.gleam
+++ b/src/gemini.gleam
@@ -26,7 +26,7 @@ pub fn get_gemtext_from_capsule(message) {
let assert Ok(request) = case bit_array.to_string(message) {
Ok(path) -> {
case path {
- "/\r\n" | "\r\n" -> request.to(gemini_proxy <> root_capsule)
+ "/\r\n" | "\r\n" | "\n" -> request.to(gemini_proxy <> root_capsule)
"/proxy/" <> route ->
request.to(gemini_proxy <> string.replace(route, "\r\n", ""))
"/" <> path ->