Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit aa1eaf1

Browse files
committed
PromiseObject: post honors self._http
This passes through the http client to preserve credentials, proxy info, etc.
1 parent 746ce0b commit aa1eaf1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

remoteobjects/promise.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ def options(self, http=None, **kwargs):
182182
resp._method = 'OPTIONS'
183183
return resp
184184

185+
def post(self, obj, http=None):
186+
if http is None:
187+
http = self._http
188+
189+
return super(PromiseObject, self).post(obj, http=http)
190+
185191
def __setattr__(self, name, value):
186192
if name is not '_delivered' and not self._delivered and name in self.fields:
187193
self.deliver()

0 commit comments

Comments
 (0)