-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Case-sensitive issue in header_down of reverse proxy #4330
Comments
Ah, yeah I see the problem. We're using a caddy/modules/caddyhttp/headers/headers.go Lines 214 to 248 in 46ab93b
|
Thanks for the report! And thanks Francis for investigating. |
Three or four parameters of
header_down
use Regex, and one does simply overwriting.Caddy did not simply make a case-sensitive distinction of the header key value when it overwrites it, but I experienced a case-sensitive distinction of the header key value when I used Regex.
I think it is not intended.
Reproduction of issue.
The above setting replaces the
Location
header's value with https if the value starts with http. It worked only when it was aLocation
, notlocation
.In comparison, the task of simply changing to
https://example.com
worked when the header was namedlocation
.Version
v2.4.5
The text was updated successfully, but these errors were encountered: