Browse Source

修复 WebSocket 400 错误

zjcqoo 6 years ago
parent
commit
ca7cb7a432
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api.conf

+ 2 - 0
api.conf

@@ -72,5 +72,7 @@ location = /http {
 # WebSocket Proxy
 location = /ws {
   access_by_lua_file    ../lua/ws-dec-req-hdr.lua;
+  proxy_set_header      Upgrade     $http_upgrade;
+  proxy_set_header      Connection  $http_connection;
   proxy_pass            $_url;
 }