Update auth.rs

This commit is contained in:
Gav Wood 2016-04-14 22:24:13 -07:00
parent 16ad086e7f
commit 0b589915b9

View File

@ -116,6 +116,7 @@ impl server::Handler<HttpStream> for UnauthorizedHandler {
res.set_status(StatusCode::Unauthorized);
Next::write()
}
fn on_response_writable(&mut self, encoder: &mut Encoder<HttpStream>) -> Next {
let response = "Unauthorized".as_bytes();