We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8e571 commit e3649e6Copy full SHA for e3649e6
common/http.py
@@ -60,7 +60,8 @@ def get(url):
60
addr = socket.getaddrinfo(host, port)[0][-1]
61
s = socket.socket()
62
try: s.settimeout(60)
63
- except: pass s.connect(addr)
+ except: pass
64
+ s.connect(addr)
65
s.send(bytes('GET /%s HTTP/1.0\r\nHost: %s\r\n\r\n' % (path, host), 'utf8'))
66
67
# Status, msg etc.
@@ -92,7 +93,8 @@ def download(source,dest):
92
93
94
95
96
97
98
99
100
0 commit comments