Skip to content

Commit 60783dd

Browse files
committed
Logging: Added target host on logging policy.
This commit add the way to get the target host on logging policy without getting request headers. Signed-off-by: Eloy Coto <[email protected]>
1 parent d818e1a commit 60783dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gateway/src/apicast/policy/logging/logging.lua

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ local function get_request_context(context)
7777
}
7878

7979
ctx.service = context.service or {}
80+
ctx.service.host = context.host
8081
return LinkedList.readonly(ctx, ngx.var)
8182
end
8283

0 commit comments

Comments
 (0)