Commits

Iwan Budi Kusnanto  committed b680558 Draft

fix HTTP_ORIGIN

  • Participants
  • Parent commits 9139ecc

Comments (0)

Files changed (1)

File geventwebsocket/websocket.py

     OPCODE_PONG = 0xA
 
     def __init__(self, socket, environ):
-        self.origin = environ.get('HTTP_SEC_WEBSOCKET_ORIGIN')
+        self.origin = environ.get('HTTP_ORIGIN')
         self.protocol = environ.get('HTTP_SEC_WEBSOCKET_PROTOCOL', 'unknown')
         self.path = environ.get('PATH_INFO')
         self._chunks = bytearray()