membphis commented on a change in pull request #2000:
URL: https://github.com/apache/apisix/pull/2000#discussion_r469373048



##########
File path: apisix/init.lua
##########
@@ -442,15 +442,12 @@ function _M.http_access_phase()
                                 return_direct, route)
             end
         end
-
-        if route.value.upstream and route.value.upstream.enable_websocket then
-            enable_websocket = true
-        end
     end
 
     if enable_websocket then
         api_ctx.var.upstream_upgrade    = api_ctx.var.http_upgrade
         api_ctx.var.upstream_connection = api_ctx.var.http_connection
+        core.log.info("enabled websocket for route: ", route.value.id)

Review comment:
       why we need this?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to