Skip to content

Commit

Permalink
tests(router) some fixes due to bad merging/rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jan 12, 2017
1 parent 73bfaf1 commit b2db9e8
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 325 deletions.
4 changes: 2 additions & 2 deletions kong/core/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
-- @return balancer if found, or `false` if not found, or nil+error on error
local get_balancer = function(target)
-- NOTE: only called upon first lookup, so `cache_only` limitations do not apply here
local hostname = target.upstream.host
local hostname = target.host

-- first go and find the upstream object, from cache or the db
local upstream, err = get_upstream(hostname)
Expand Down Expand Up @@ -300,7 +300,7 @@ local function execute(target)
if not ip then
if port == "dns server error; 3 name error" then
-- in this case a "503 service unavailable", others will be a 500.
log(ERROR, "name resolution failed for '", tostring(target.host),
log(ERROR, "name resolution failed for '", tostring(target.host),
"': ", port)
return responses.send(503)
end
Expand Down
Loading

0 comments on commit b2db9e8

Please sign in to comment.