Skip to content

Commit

Permalink
Update kong/plugins/azure-functions/handler.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaochen Wang <[email protected]>
  • Loading branch information
outsinre and chobits authored Jul 11, 2024
1 parent e13dc5c commit 71f4a84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions kong/plugins/azure-functions/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ function azure:access(conf)
end

if kong.configuration.enabled_headers[VIA_HEADER] then
local outbound_via
if var.http2 then
outbound_via = "2 " .. server_header

else
outbound_via = "1.1 " .. server_header
end
local outbound_via = (ngx_var.http2 and "2 " or "1.1 ") .. server_tokens
response_headers[VIA_HEADER] = response_headers[VIA_HEADER] and response_headers[VIA_HEADER] .. ", " .. outbound_via
or outbound_via
end
Expand Down

0 comments on commit 71f4a84

Please sign in to comment.