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 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()
|
||||
|
|
Loading…
Reference in a new issue