Skip to content

Commit

Permalink
chore: add a deprecate log for enable_websocket in upstream (#2691)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Nov 15, 2020
1 parent 02ec388 commit cce4f51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apisix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ function _M.http_access_phase()
end

if upstream.value.enable_websocket then
core.log.warn("DEPRECATE: enable websocket in upstream will be removed soon. ",
"Please enable it in route/service level.")
enable_websocket = true
end

Expand Down

0 comments on commit cce4f51

Please sign in to comment.