mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
fix httpauth extraction error handling in middleware (#128)
This commit is contained in:
@ -11,7 +11,7 @@ async fn validator(
|
||||
Ok(req)
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
HttpServer::new(|| {
|
||||
let auth = HttpAuthentication::basic(validator);
|
||||
|
Reference in New Issue
Block a user