From 4e2cd67946a567e25b6aeb9f4db40d3d12f0baab Mon Sep 17 00:00:00 2001
From: angelblue05 <tamara.angel05@gmail.com>
Date: Wed, 25 Nov 2015 17:20:06 -0600
Subject: [PATCH] Fix for connection

In case status is good, but server is unreachable.
---
 resources/lib/DownloadUtils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/lib/DownloadUtils.py b/resources/lib/DownloadUtils.py
index 94010800..04d2da85 100644
--- a/resources/lib/DownloadUtils.py
+++ b/resources/lib/DownloadUtils.py
@@ -281,7 +281,7 @@ class DownloadUtils():
                     self.logMsg("Response: %s" % r, 2)
                     return r
                 except:
-                    if r.headers['content-type'] == "text/html":
+                    if r.headers.get('content-type') == "text/html":
                         pass
                     else:
                         self.logMsg("Unable to convert the response for: %s" % url, 1)