From f02ff00f78029bfceb2468de37bb8d679a4cc279 Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Thu, 13 Aug 2015 00:44:07 +0200 Subject: [PATCH] warsow.py: Use secure connection 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. --- warsow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warsow.py b/warsow.py index e8dbd69..fd0f71f 100644 --- a/warsow.py +++ b/warsow.py @@ -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 ""%(res.status, res.reason)