mirror of
https://github.com/flibusta-apps/batch_downloader.git
synced 2026-03-03 07:00:48 +01:00
Update deps
This commit is contained in:
@@ -21,10 +21,8 @@ async fn start_app() {
|
||||
let app = get_router().await;
|
||||
|
||||
info!("Start webserver...");
|
||||
axum::Server::bind(&addr)
|
||||
.serve(app.into_make_service())
|
||||
.await
|
||||
.unwrap();
|
||||
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
info!("Webserver shutdown...");
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ async fn check_archive_task_status(Path(task_id): Path<String>) -> impl IntoResp
|
||||
}
|
||||
}
|
||||
|
||||
async fn auth<B>(req: Request<B>, next: Next<B>) -> Result<Response, StatusCode> {
|
||||
async fn auth(req: Request<axum::body::Body>, next: Next) -> Result<Response, StatusCode> {
|
||||
let auth_header = req
|
||||
.headers()
|
||||
.get(http::header::AUTHORIZATION)
|
||||
|
||||
Reference in New Issue
Block a user