Port of http://svn.secondlife.com/trac/eventlet/changeset/154: Expose use_proxy flag via http post. Reviewed by Leyla.
This commit is contained in:
@@ -667,8 +667,8 @@ class HttpSuite(object):
|
|||||||
return self.delete_(*args, **kwargs)[-1]
|
return self.delete_(*args, **kwargs)[-1]
|
||||||
|
|
||||||
def post_(
|
def post_(
|
||||||
self, url, data='', headers=None, content_type=None,ok=None,
|
self, url, data='', headers=None, use_proxy=False, content_type=None,
|
||||||
aux=None, connection=None):
|
ok=None, aux=None, connection=None):
|
||||||
if headers is None:
|
if headers is None:
|
||||||
headers = {}
|
headers = {}
|
||||||
if 'content-type' not in headers:
|
if 'content-type' not in headers:
|
||||||
@@ -681,7 +681,7 @@ class HttpSuite(object):
|
|||||||
_Params(
|
_Params(
|
||||||
url, 'POST', body=data,
|
url, 'POST', body=data,
|
||||||
headers=headers, loader=self.loader,
|
headers=headers, loader=self.loader,
|
||||||
dumper=self.dumper, ok=ok, aux=aux),
|
dumper=self.dumper, use_proxy=use_proxy, ok=ok, aux=aux),
|
||||||
connection)
|
connection)
|
||||||
|
|
||||||
def post(self, *args, **kwargs):
|
def post(self, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user