fix
This commit is contained in:
parent
9dda6fcf7a
commit
ff9a0b8691
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
use actix_web::{web, App, HttpRequest, HttpServer, Responder};
|
||||
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
||||
mod config;
|
||||
mod proxy;
|
||||
use proxy::Mirror;
|
||||
|
@ -8,7 +8,7 @@ async fn index(req: HttpRequest) -> impl Responder {
|
|||
let p: &actix_web::web::Data<Mirror> = req.app_data().unwrap();
|
||||
|
||||
let data = p.get(path, &req).await;
|
||||
data.unwrap()
|
||||
data.unwrap_or_else(|| HttpResponse::NotFound().finish())
|
||||
}
|
||||
|
||||
#[actix_web::main]
|
||||
|
|
Loading…
Add table
Reference in a new issue