PromiseObject.get() passes on kwargs to get_request() on delivery.
This commit is contained in:
Родитель
d306b53393
Коммит
3b681ea5b8
|
@ -157,6 +157,7 @@ class PromiseObject(remoteobjects.http.HttpObject):
|
||||||
self._location = url
|
self._location = url
|
||||||
self._http = http
|
self._http = http
|
||||||
self._delivered = False
|
self._delivered = False
|
||||||
|
self._get_kwargs = kwargs
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@ -210,7 +211,7 @@ class PromiseObject(remoteobjects.http.HttpObject):
|
||||||
if self._http is None:
|
if self._http is None:
|
||||||
http = remoteobjects.http.userAgent
|
http = remoteobjects.http.userAgent
|
||||||
|
|
||||||
request = self.get_request()
|
request = self.get_request(**self._get_kwargs)
|
||||||
response, content = http.request(**request)
|
response, content = http.request(**request)
|
||||||
self.update_from_response(request['uri'], response, content)
|
self.update_from_response(request['uri'], response, content)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче