mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-03 01:55:27 +00:00
remove extra lines
This commit is contained in:
parent
29f740a716
commit
63b3c3852a
1 changed files with 190 additions and 194 deletions
|
|
@ -163,8 +163,7 @@ fn handle(
|
|||
}
|
||||
}
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-20
|
||||
Response::Success(success) => match success {
|
||||
_ => match *feature {
|
||||
Response::Success(success) => match *feature {
|
||||
Feature::Download => {
|
||||
// Init download widget
|
||||
let status = page.content.to_status_download(
|
||||
|
|
@ -328,12 +327,10 @@ fn handle(
|
|||
redirects.replace(0); // reset
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
Response::Redirect(redirect) => match &redirect {
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-30-temporary-redirection
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-31-permanent-redirection
|
||||
_ => match redirect.to_uri(&uri) {
|
||||
Response::Redirect(redirect) => match redirect.to_uri(&uri) {
|
||||
Ok(target) => {
|
||||
// Increase client redirection counter
|
||||
let total = redirects.take() + 1;
|
||||
|
|
@ -373,7 +370,6 @@ fn handle(
|
|||
redirects.replace(0); // reset
|
||||
}
|
||||
}
|
||||
}
|
||||
Response::Certificate(ref certificate) => match certificate {
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
||||
Certificate::Required { message } |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue