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

THREESCALE-6723 fix hostname_rewrite incompatible with routing policy #1263

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

samugi
Copy link
Contributor

@samugi samugi commented Feb 17, 2021

This makes hostname_rewrite work even when the routing policy is in the policy chain.

@samugi samugi requested a review from eloycoto February 17, 2021 15:52
@samugi samugi requested a review from a team as a code owner February 17, 2021 15:52
Copy link
Contributor

@eloycoto eloycoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nitpick and also the Changelog. Awesome work!

@@ -29,8 +29,10 @@ function _M.select(_, rules, context)

local upstream = Upstream.new(rule.url)

if rule.host_header and rule.host_header ~= '' then
upstream:use_host_header(rule.host_header)
local service = context.service or ngx.ctx.service or {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nitpick, but I would move this to the line 23, so it's not called in each loop.

@samugi
Copy link
Contributor Author

samugi commented Mar 4, 2021

The nitpick and also the Changelog. Awesome work!

all done :)

@eloycoto eloycoto merged commit e7f6ebb into 3scale:master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants