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:
Ryan Williams
2008-11-11 17:07:29 -08:00
parent 1a3e309c31
commit 614851ac0c

View File

@@ -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):