changeset 172:964d7caf70b0 1.1.0

Really fix the User-Agent issue.
author Benoît Allard <benoit.allard@greenbone.net>
date Mon, 05 Jan 2015 14:18:34 +0100
parents 62c482ae1755
children 78228e4cad21
files farol/main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/farol/main.py	Mon Jan 05 12:35:14 2015 +0100
+++ b/farol/main.py	Mon Jan 05 14:18:34 2015 +0100
@@ -120,7 +120,7 @@
         proxy = urllib2.ProxyHandler({'http': proxy_host, 'https': proxy_host})
         opener = urllib2.build_opener(proxy)
         urllib2.install_opener(opener)
-    try: content = urllib2.urlopen(url).read()
+    try: content = urllib2.urlopen(request).read()
     except urllib2.HTTPError as e:
         flash('Unable to retrieve %s: %s' % (url, e))
         return

http://farol.wald.intevation.org