mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Actually connect the connection before returning it
This commit is contained in:
parent
c8b70c30b9
commit
8d22053bed
@ -120,7 +120,9 @@ class TestServer(Thread):
|
||||
timeout = self.loop.opts.timeout
|
||||
if interface is None:
|
||||
interface = self.address[0]
|
||||
return http_client.HTTPConnection(interface, self.address[1], timeout=timeout)
|
||||
ans = http_client.HTTPConnection(interface, self.address[1], timeout=timeout)
|
||||
ans.connect()
|
||||
return ans
|
||||
|
||||
def change_handler(self, handler):
|
||||
from calibre.srv.http_response import create_http_handler
|
||||
|
Loading…
x
Reference in New Issue
Block a user