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

Host routing pattern not match when host contains port #3036

Closed
ashraf-revo opened this issue Aug 23, 2023 · 2 comments
Closed

Host routing pattern not match when host contains port #3036

ashraf-revo opened this issue Aug 23, 2023 · 2 comments

Comments

@ashraf-revo
Copy link
Contributor

ashraf-revo commented Aug 23, 2023

Describe the bug
Host routing pattern not match when host contains port
if you are running server behind a port like 8080 and

when you hit browser for gateway.lcl:8080 this will not match a pattern gateway.lcl

spring:
  cloud:
    gateway:
      routes:
        - id: gateway
          uri: https://example.org
          predicates:
            - Host= gateway.lcl

Sample
i created this repo to simulate the error and how to fix it in this url https://github.com/ashraf-revo/gateway-error/tree/issue-host-name
.

@spencergibb
Copy link
Member

Closing in favor of #3037

@ashraf-revo
Copy link
Contributor Author

@spencergibb is there any plan to review the pr or see this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants