Skip to content

Commit

Permalink
change: remove deprecated upstream.enable_websocket (#3854)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored Mar 19, 2021
1 parent 6b3140e commit f3a6c2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions apisix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,6 @@ function _M.http_access_phase()
end
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

if upstream.value.pass_host then
api_ctx.pass_host = upstream.value.pass_host
api_ctx.upstream_host = upstream.value.upstream_host
Expand Down
5 changes: 0 additions & 5 deletions apisix/schema_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,6 @@ local upstream_schema = {
minLength = 1
},
id = id_schema,
-- deprecate fields, will be removed soon
enable_websocket = {
description = "enable websocket for request",
type = "boolean",
},
},
oneOf = {
{required = {"type", "nodes"}},
Expand Down

0 comments on commit f3a6c2a

Please sign in to comment.