Fix fake headers dict in tests

This commit is contained in:
Pierre Ossman 2025-02-12 11:05:56 +01:00
parent 187e204ce4
commit 0d519b9c18
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class ProxyRequestHandlerTestCase(unittest.TestCase):
self.handler = websocketproxy.ProxyRequestHandler(
FakeSocket(), "127.0.0.1", FakeServer())
self.handler.path = "https://localhost:6080/websockify?token=blah"
self.handler.headers = None
self.handler.headers = {}
patch('websockify.websockifyserver.WebSockifyServer.socket').start()
def tearDown(self):