envoyproxy / envoyproxy/envoy

strip_any_host_port in HCM also strip port number in redirected/rewritten URL

Open
#19,589 8 comments 0 reactions 1 assignee Claimed by @ankatare View on GitHub
area/http bug no stalebot
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

*Title*: strip_any_host_port in HCM also strip port number in redirected URL

*Description*: I'd think this is a bug: when we configure strip_any_host_port in HCM, the port number is stripped from :host.
when it's a URL redirect, this setting removes the port number from the redirected URL as well.

*Repro steps*:
sets strip_any_host_port to true in HCM, sets a path-only-redirect route, and the returned redirection points to a URL that's not working(no service listening on default port)..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.