We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f691ea commit 396aaa2Copy full SHA for 396aaa2
src/tls_listener.rs
@@ -104,7 +104,7 @@ fn handle_tls<State: Clone + Send + Sync + 'static>(
104
Ok(tls_stream) => {
105
let stream = TlsStreamWrapper::new(tls_stream);
106
let fut = async_h1::accept(stream, |mut req| async {
107
- if let Err(_) = req.url_mut().set_scheme("https") {
+ if req.url_mut().set_scheme("https").is_err() {
108
tide::log::error!("unable to set https scheme on url", { url: req.url().to_string() });
109
}
110
0 commit comments