Skip to content

Commit

Permalink
warsow.py: Use secure connection
Browse files Browse the repository at this point in the history
http points to https points to the actual file.
As the script only looks for the next level we
have to use the https connection to get to the actual
file.
  • Loading branch information
ckorn committed Aug 12, 2015
1 parent 59ea504 commit f02ff00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warsow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if not m: sys.exit()
for link in m:
warsow=link.group("warsow")
conn = httplib.HTTPConnection("www.warsow.net")
conn = httplib.HTTPSConnection("www.warsow.net")
conn.request("HEAD", "/download?dl=%s"%(warsow))
res = conn.getresponse()
print "<!-- %d %s -->"%(res.status, res.reason)
Expand Down

0 comments on commit f02ff00

Please sign in to comment.