Skip to content

Commit eccb136

Browse files
committed
remove comment, original host is stored in x-forwarded-host
1 parent 0ba4eee commit eccb136

File tree

1 file changed

+0
-3
lines changed
  • runtimes/core/src/api/gateway

1 file changed

+0
-3
lines changed

runtimes/core/src/api/gateway/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,6 @@ impl ProxyHttp for Gateway {
311311

312312
upstream_request.set_uri(new_uri);
313313

314-
// Do we need to set the host header here?
315-
// It means the upstream service won't be able to tell
316-
// what the original Host header was, which is sometimes useful.
317314
if let Some(ref host) = gateway_ctx.upstream_host {
318315
upstream_request.insert_header(header::HOST, host)?;
319316
}

0 commit comments

Comments
 (0)