update comments

This commit is contained in:
yggverse 2024-11-21 22:39:09 +02:00
parent 182d705960
commit 1e36b73077

View File

@ -574,6 +574,7 @@ impl Page {
// Update page // Update page
update.activate(Some(&id)); update.activate(Some(&id));
}, },
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-20
gemini::client::response::meta::Status::Success => { gemini::client::response::meta::Status::Success => {
// Route by MIME // Route by MIME
match response.mime() { match response.mime() {
@ -756,8 +757,9 @@ impl Page {
}, },
} }
}, },
// https://geminiprotocol.net/docs/protocol-specification.gmi#redirection // https://geminiprotocol.net/docs/protocol-specification.gmi#status-30-temporary-redirection
gemini::client::response::meta::Status::Redirect | gemini::client::response::meta::Status::Redirect |
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-31-permanent-redirection
gemini::client::response::meta::Status::PermanentRedirect => { gemini::client::response::meta::Status::PermanentRedirect => {
// Extract redirection URL from response data // Extract redirection URL from response data
match response.data() { match response.data() {