aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-26 09:43:42 +0000
committerFuwn <[email protected]>2022-03-26 09:43:42 +0000
commitfc09851d0c2e6016e85a6f908f18d8c59f8a307a (patch)
treea0826d014e317753cd580b9f0d56e8c523130e41 /src/lib.rs
parentfeat(response): temporary failure response (diff)
downloadwindmark-fc09851d0c2e6016e85a6f908f18d8c59f8a307a.tar.xz
windmark-fc09851d0c2e6016e85a6f908f18d8c59f8a307a.zip
feat(response): inputs
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f532679..1b17318 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -367,11 +367,11 @@ impl Router {
"{}{}\r\n{}",
response_status,
match response_status {
- 40 | 50 | 51 => &*content,
+ 10 | 11 | 40 | 50 | 51 => &*content,
_ => " text/gemini; charset=utf-8",
},
match response_status {
- 40 | 50 | 51 => "".to_string(),
+ 10 | 11 | 40 | 50 | 51 => "".to_string(),
_ => format!("{}{}{}", header, content, footer),
}
)