I've a service which sets the header x-user_type. Since Apache2.4.33 cannot use this, i'll transform this with the following in a .htaccess:
<IfModule mod_headers.c>
<IfModule mod_setenvif.c>
SetEnvIfNoCase ^x.user.type$ ^(.*)$ fix_x-user_type=$1
RequestHeader set x-user-type %{fix_x-user_type}e env=fix_x-user_type
</IfModule>
</IfModule>
But if i supply x-user-type within a request then the value for x-user-type in the response is overwritten
Examples:
- Nothing supplied -> x-user-type = application (This is set by the service)
- x-user_type = test -> x-user-type = application (This is ok, since it is set by the service)
- x-user-type = test -> x-user-type = test (This should be application as well)
I think this is an apache configuration issue. Can someone help me solve this?
Best Answer
Fixed my own Problem with this: https://serverfault.com/a/900745/490242
Quote:
Seems like
SetEnvIfNoCase
was my problem too.