Skip to content

Commit 9670755

Browse files
author
Claudio
committed
setting PROXY_TYPE_HTTP_NO_TUNNEL as default proxy option
1 parent 7ead980 commit 9670755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _fetchUrl(self, url):
193193
raise ValueError('You should supply a value for HOST and PORT when working with proxies. %s' % err)
194194

195195
params.update(
196-
{'proxy_info': httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, host, port)}
196+
{'proxy_info': httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP_NO_TUNNEL, host, port)}
197197
)
198198
http = httplib2.Http(**params)
199199
resp, content = http.request(url)

0 commit comments

Comments
 (0)