Skip to content

Commit d188ba4

Browse files
author
Claudio
committed
adjusting proxy rules
1 parent 9670755 commit d188ba4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bitly.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def _getURL(self, verb, paramVal, more_params={}):
164164
if verbParam:
165165
for val in paramVal:
166166
params.append(( verbParam, val ))
167-
168167
encoded_params = urllib.urlencode(params)
169168
return "%s%s?%s" % (self.get_api_domain(), verb, encoded_params)
170169

socks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __init__(self, family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0, _soc
125125
self.__proxy = (None, None, None, None, None, None)
126126
self.__proxysockname = None
127127
self.__proxypeername = None
128-
self.__httptunnel = True
128+
self.httptunnel = True
129129

130130
def __recvall(self, count):
131131
"""__recvall(count) -> data
@@ -142,7 +142,7 @@ def __recvall(self, count):
142142
def sendall(self, bytes):
143143
if 'encode' in dir(bytes):
144144
bytes = bytes.encode()
145-
if not self.__httptunnel:
145+
if not self.httptunnel:
146146
bytes = self.__rewriteproxy(bytes)
147147
socket.socket.sendall(self, bytes)
148148

0 commit comments

Comments
 (0)