mirror of https://github.com/n1nj4sec/pupy.git
network/lib/transports/websocket: Fix error message
This commit is contained in:
parent
b7a64297ca
commit
3c98368a2a
|
@ -406,7 +406,7 @@ class PupyWebSocketServer(PupyWebSocketTransport):
|
|||
d = data.peek()
|
||||
# Handle HTTP GET requests, strip websocket keys, verify UA etc
|
||||
if not d.startswith('GET '):
|
||||
self.bad_request('Invalid HTTP method or data (%s)', repr(d))
|
||||
self.bad_request('Invalid HTTP method or data ({})'.format(repr(d)))
|
||||
|
||||
if '\r\n\r\n' not in d:
|
||||
if __debug__:
|
||||
|
|
Loading…
Reference in New Issue