From c8e6fbb36cac6ce5919540df13e1ccd3dc10b5cb Mon Sep 17 00:00:00 2001 From: spacewander Date: Thu, 18 Mar 2021 09:51:30 +0800 Subject: [PATCH] change: remove deprecated upstream.enable_websocket Signed-off-by: spacewander --- apisix/init.lua | 6 ------ apisix/schema_def.lua | 5 ----- 2 files changed, 11 deletions(-) diff --git a/apisix/init.lua b/apisix/init.lua index a8d851c6bbc6..4c6fa3ab4fa6 100644 --- a/apisix/init.lua +++ b/apisix/init.lua @@ -401,12 +401,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 diff --git a/apisix/schema_def.lua b/apisix/schema_def.lua index 9ae7669928ba..ec5ec978156d 100644 --- a/apisix/schema_def.lua +++ b/apisix/schema_def.lua @@ -381,11 +381,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"}},