1
0
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:
Rob Ede
2020-11-18 15:08:03 +00:00
committed by GitHub
parent 61778d864e
commit cbfd5d94ee
7 changed files with 85 additions and 37 deletions

View File

@ -2,7 +2,7 @@ use actix_web::{middleware, web, App, HttpServer};
use actix_web_httpauth::middleware::HttpAuthentication;
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
let auth = HttpAuthentication::basic(|req, _credentials| async { Ok(req) });