Commits

Lon Ingram  committed 72b77e0

Ignore SERVER_NAME != HTTP_HOST

  • Participants
  • Parent commits 2d7086a
  • Branches stable

Comments (0)

Files changed (1)

File geventwebsocket/handler.py

             # 5.2.1 (1)
             self._close_connection()
             return False
-        elif not environ.get("HTTP_HOST") == environ.get("SERVER_NAME"):
+        # XXX: nobody seems to set SERVER_NAME correctly. check the spec
+        #elif not environ.get("HTTP_HOST") == environ.get("SERVER_NAME"):
             # 5.2.1 (2)
-            self._close_connection()
-            return False
+            #self._close_connection()
+            #return False
         elif not key:
             # 5.2.1 (3)
             self._close_connection()