Update auth.rs
This commit is contained in:
parent
16ad086e7f
commit
0b589915b9
@ -116,6 +116,7 @@ impl server::Handler<HttpStream> for UnauthorizedHandler {
|
|||||||
res.set_status(StatusCode::Unauthorized);
|
res.set_status(StatusCode::Unauthorized);
|
||||||
Next::write()
|
Next::write()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_response_writable(&mut self, encoder: &mut Encoder<HttpStream>) -> Next {
|
fn on_response_writable(&mut self, encoder: &mut Encoder<HttpStream>) -> Next {
|
||||||
let response = "Unauthorized".as_bytes();
|
let response = "Unauthorized".as_bytes();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user