Don't remove host header

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-10-16 21:37:04 -05:00
parent 66fd940c15
commit 9d883b5851
No known key found for this signature in database

View file

@ -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()