def headerReceived(self, line):
    header = line.split(':')[0].lower()
    if header == "sec-websocket-key1" and not self._transferDecoder:
       HTTPChannel.headerReceived(self, "Content-Length: 8")
    HTTPChannel.headerReceived(self, line)
Example #2
0
 def headerReceived(self, line):
     header = line.split(':')[0].lower()
     if header == "sec-websocket-key1" and not self._transferDecoder:
         HTTPChannel.headerReceived(self, "Content-Length: 8")
     HTTPChannel.headerReceived(self, line)