-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: Support adding header in proxy-rewrite plugin #8239
Comments
please assign to me |
@spacewander cc |
|
If the header exists, it will be overwritten. Expect:
{
"proxy-rewrite": {
"headers": {
"add": {
"Cache-Control": "must-revalidate",
}
}
}
}
Actual:
{
"proxy-rewrite": {
"headers": {
"Cache-Control": "must-revalidate"
}
}
}
|
I think the design of this part should be consistent with response-rewrite. |
cc @mscb402 |
Co-authored-by: 罗泽轩 <[email protected]> Fixes #8239
Does this add plugin add value multiple time ? I am experiencing that header value get added two time |
Description
Currently, proxy-rewrite plugin only supports set / delete headers. The limitation makes some operations impossible. This feature is required to implement Gateway API HTTPHeaderFilter.
Expect
Actual
The text was updated successfully, but these errors were encountered: