mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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
|
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-20
|
||||||
Response::Success(success) => match success {
|
Response::Success(success) => match *feature {
|
||||||
_ => match *feature {
|
|
||||||
Feature::Download => {
|
Feature::Download => {
|
||||||
// Init download widget
|
// Init download widget
|
||||||
let status = page.content.to_status_download(
|
let status = page.content.to_status_download(
|
||||||
|
|
@ -328,12 +327,10 @@ fn handle(
|
||||||
redirects.replace(0); // reset
|
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-30-temporary-redirection
|
||||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-31-permanent-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) => {
|
Ok(target) => {
|
||||||
// Increase client redirection counter
|
// Increase client redirection counter
|
||||||
let total = redirects.take() + 1;
|
let total = redirects.take() + 1;
|
||||||
|
|
@ -373,7 +370,6 @@ fn handle(
|
||||||
redirects.replace(0); // reset
|
redirects.replace(0); // reset
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Response::Certificate(ref certificate) => match certificate {
|
Response::Certificate(ref certificate) => match certificate {
|
||||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
||||||
Certificate::Required { message } |
|
Certificate::Required { message } |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue