zhendongcmss commented on a change in pull request #5174:
URL: https://github.com/apache/apisix/pull/5174#discussion_r724632723
##########
File path: apisix/admin/init.lua
##########
@@ -192,13 +192,13 @@ local function run_stream()
if not local_conf.apisix.stream_proxy then
core.log.warn("stream mode is disabled, can not to add any stream ",
"route")
- core.response.exit(400)
+ core.response.exit(400, {error_msg="stream mode is disabled, can not "
..
+ "to add stream"})
end
local ok, err = check_token(api_ctx)
if not ok then
- core.log.warn("failed to check token: ", err)
Review comment:
OK, will update in next patch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]