Skip to content

Commit

Permalink
fix: modify resp status
Browse files Browse the repository at this point in the history
  • Loading branch information
高亮亮 committed Feb 23, 2022
1 parent 6264b2b commit 0f06ba1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apisix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ end

local function set_resp_upstream_status(up_status)
local_conf = core.config.local_conf()

if local_conf.apisix and local_conf.apisix.show_upstream_status_in_response_header then
core.response.set_header("X-APISIX-Upstream-Status", up_status)
elseif #up_status == 3 then
Expand Down

0 comments on commit 0f06ba1

Please sign in to comment.