summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAli Sabil <ali.sabil@gmail.com>2007-03-20 16:15:15 +0530
committerAli Sabil <ali.sabil@gmail.com>2007-03-20 16:15:15 +0530
commit02416ce2aec49c4fd939fd1bc4673b2d49668f02 (patch)
tree1cfb9a9ab0d099ed39077af81d039f3e1d1fb149 /test.py
parent41217109036ff55b5eb8a0e1e314344813058a81 (diff)
- Updated pymsn to the new gio
- Added proxy support to service/
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test.py b/test.py
index bf20df4..eafa8c7 100644
--- a/test.py
+++ b/test.py
@@ -12,6 +12,10 @@ def get_proxies():
import urllib
proxies = urllib.getproxies()
result = {}
+ if 'https' not in proxies and \
+ 'http' in proxies:
+ url = proxies['http'].replace("http://", "https://")
+ result['https'] = pymsn.Proxy(url)
for type, url in proxies.items():
if type == 'no': continue
result[type] = pymsn.Proxy(url)