Further refactoring towards #1176.

This commit is contained in:
Griatch 2017-02-02 00:02:58 +01:00
parent 09245589f5
commit a9f08760cc
4 changed files with 14 additions and 11 deletions

View file

@ -560,7 +560,8 @@ class WebSocketProtocol(ProtocolWrapper):
request, chaff, self.buf = self.buf.partition("\r\n")
try:
# verb and version are never used, maybe in the future.
verb, self.location, version = request.split(" ")
#verb, self.location, version
_, self.location, _ = request.split(" ")
except ValueError:
self.loseConnection()
else: