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

Prioritize method matching #789

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

sjberman
Copy link
Contributor

Problem: A recent clarification in the gateway API stated that methods are prioritized higher than headers when matching. We were not abiding by this order.

Solution: Check for methods to prioritize rules before we check headers.

Testing: Validated test case provided in the issue.

Closes #755

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Problem: A recent clarification in the gateway API stated that methods are prioritized higher than headers when matching. We were not abiding by this order.

Solution: Check for methods to prioritize rules before we check headers.
@sjberman sjberman requested a review from a team as a code owner June 26, 2023 17:14
@github-actions github-actions bot added the bug Something isn't working label Jun 26, 2023
@sjberman sjberman merged commit e04cc27 into nginxinc:main Jun 26, 2023
15 checks passed
@sjberman sjberman deleted the bug/matching-precedence branch June 26, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Incorrect matching precedence order
3 participants