diff --git a/src/lib.rs b/src/lib.rs index 56a6c7b..eff7e92 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,8 +195,6 @@ impl< let path_and_query = uri.path_and_query().ok_or(ERR_BAD_REQUEST)?; let state = app.app_state(); - header.remove("host"); - let req = state .backend_client .request( @@ -306,9 +304,9 @@ impl< }; let ctx = app.app_state().ctx_template.clone(); - if let Disposition::Intercept(e) = app.evaluate(ctx, &info).await.0 { return Err(Either::B(e)) } - - header.remove("host"); + if let Disposition::Intercept(e) = app.evaluate(ctx, &info).await.0 { + return Err(Either::B(e)); + } let req = app .app_state()