Skip to content

Commit 259c0de

Browse files
author
Crazy-xyr
committed
暂存upsteam
1 parent 298f266 commit 259c0de

File tree

6 files changed

+958
-59
lines changed

6 files changed

+958
-59
lines changed

apisix/admin/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ local function run()
235235
end
236236

237237
if code then
238-
if method == "get" and plugin.enable_data_encryption then
238+
if code == 200 and method == "get" and plugin.enable_data_encryption then
239239
if seg_res == "consumers" or seg_res == "credentials" then
240240
utils.decrypt_params(plugin.decrypt_conf, data, core.schema.TYPE_CONSUMER)
241241
elseif seg_res == "plugin_metadata" then

apisix/core/config_util.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
-- @module core.config_util
2121

2222
local core_tab = require("apisix.core.table")
23+
local json = require("apisix.core.json")
2324
local log = require("apisix.core.log")
2425
local str_byte = string.byte
2526
local str_char = string.char
@@ -61,6 +62,7 @@ function _M.add_clean_handler(item, func)
6162
if not item.clean_handlers then
6263
return nil, "clean handlers for the item are nil"
6364
end
65+
log.error("parse route which contain domain: ",json.delay_encode(item, true))
6466

6567
if not item.clean_handlers._id then
6668
item.clean_handlers._id = 1

0 commit comments

Comments
 (0)