mirror of https://github.com/scrapy/scrapy.git
Creating a connection to 0.0.0.0 fails on windows but not on linux nor mac
This commit is contained in:
parent
ed068e59b7
commit
0e532e3dd8
|
|
@ -209,7 +209,7 @@ class MockServer():
|
|||
time.sleep(0.2)
|
||||
|
||||
def url(self, path, is_secure=False):
|
||||
host = self.http_address
|
||||
host = self.http_address.replace('0.0.0.0', '127.0.0.1')
|
||||
if is_secure:
|
||||
host = self.https_address
|
||||
return host + path
|
||||
|
|
|
|||
Loading…
Reference in New Issue