Skip to content

Commit

Permalink
Merge pull request xmendez#3 from liorbp/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo that prevents using SOCKS 4/5 proxy for a particular request. Althought, this is done now in myhttp.py, so this code should not be currently used.
  • Loading branch information
xmendez committed Jan 22, 2015
2 parents 2c7caa7 + 1411ddc commit 567ff8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions externals/reqresp/Request.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ def to_pycurl_object(c, req):
proxy = req.getProxy()
if proxy != None:
c.setopt(pycurl.PROXY, proxy)
if req.proxytype=="SOCK5":
if req.proxytype=="SOCKS5":
c.setopt(pycurl.PROXYTYPE,pycurl.PROXYTYPE_SOCKS5)
elif req.proxytype=="SOCK4":
elif req.proxytype=="SOCKS4":
c.setopt(pycurl.PROXYTYPE,pycurl.PROXYTYPE_SOCKS4)
req.delHeader("Proxy-Connection")

Expand Down

0 comments on commit 567ff8b

Please sign in to comment.