Don't remove host header
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
66fd940c15
commit
9d883b5851
1 changed files with 3 additions and 5 deletions
|
@ -195,8 +195,6 @@ impl<
|
||||||
let path_and_query = uri.path_and_query().ok_or(ERR_BAD_REQUEST)?;
|
let path_and_query = uri.path_and_query().ok_or(ERR_BAD_REQUEST)?;
|
||||||
let state = app.app_state();
|
let state = app.app_state();
|
||||||
|
|
||||||
header.remove("host");
|
|
||||||
|
|
||||||
let req = state
|
let req = state
|
||||||
.backend_client
|
.backend_client
|
||||||
.request(
|
.request(
|
||||||
|
@ -306,9 +304,9 @@ impl<
|
||||||
};
|
};
|
||||||
|
|
||||||
let ctx = app.app_state().ctx_template.clone();
|
let ctx = app.app_state().ctx_template.clone();
|
||||||
if let Disposition::Intercept(e) = app.evaluate(ctx, &info).await.0 { return Err(Either::B(e)) }
|
if let Disposition::Intercept(e) = app.evaluate(ctx, &info).await.0 {
|
||||||
|
return Err(Either::B(e));
|
||||||
header.remove("host");
|
}
|
||||||
|
|
||||||
let req = app
|
let req = app
|
||||||
.app_state()
|
.app_state()
|
||||||
|
|
Loading…
Add table
Reference in a new issue