bugfix
This commit is contained in:
parent
542c2d2660
commit
03249a2e22
@ -223,6 +223,10 @@ class UAPI:
|
|||||||
|
|
||||||
async def stream_resp(self, api):
|
async def stream_resp(self, api):
|
||||||
path = await self.rendertmpl(api.path)
|
path = await self.rendertmpl(api.path)
|
||||||
|
url = ''
|
||||||
|
if path.startswith('https://') or path.startswith('http://'):
|
||||||
|
url = path
|
||||||
|
else:
|
||||||
url = self.env.get('baseurl') + path
|
url = self.env.get('baseurl') + path
|
||||||
method = api.httpmethod
|
method = api.httpmethod
|
||||||
headers = await self.rendertmpl(api.headers)
|
headers = await self.rendertmpl(api.headers)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user