Skip to content
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

[BUG] Fix the issue with deleting the "Host" header #5780

Open
1 task done
titxue opened this issue Nov 13, 2024 · 1 comment
Open
1 task done

[BUG] Fix the issue with deleting the "Host" header #5780

titxue opened this issue Nov 13, 2024 · 1 comment
Labels
type: bug Something isn't working

Comments

@titxue
Copy link

titxue commented Nov 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Directly deleting the "Host" header causes the custom host in the requests plugin to fail.

image
image

Expected Behavior

The "Host" header should be customizable, rather than being restricted to the reverse proxy address.

image

Steps To Reproduce

  1. Go to HttpProcessRequestRulesHeaders.
  2. Adding a custom Host value to the headers does not take effect.

Environment

ShenYu version(s):2.6.1

Debug logs

No response

Anything else?

The Host field is not set correctly when the upstream is a reverse proxy.

@titxue titxue added the type: bug Something isn't working label Nov 13, 2024
@moremind
Copy link
Member

In your second picture, why does your host have to be github.com? please add my wechat: yijia1949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants