Skip to content

Commit

Permalink
hotfix(pdk) prioritize exit over proxy in 'kong.response.get_source'
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito authored and thibaultcha committed Dec 5, 2018
1 parent 140e383 commit 6aeee60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kong/pdk/response.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ local function new(self, major_version)
return "error"
end

if ctx.KONG_PROXIED then
return "service"
end

if ctx.KONG_EXITED then
return "exit"
end

if ctx.KONG_PROXIED then
return "service"
end

return "error"
end

Expand Down

0 comments on commit 6aeee60

Please sign in to comment.