From 03249a2e2251d8196cc19dbf24b5ad2f401c8dd1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Jan 2026 10:59:03 +0800 Subject: [PATCH] bugfix --- uapi/appapi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uapi/appapi.py b/uapi/appapi.py index 18e6626..4226744 100644 --- a/uapi/appapi.py +++ b/uapi/appapi.py @@ -223,7 +223,11 @@ class UAPI: async def stream_resp(self, api): path = await self.rendertmpl(api.path) - url = self.env.get('baseurl') + path + url = '' + if path.startswith('https://') or path.startswith('http://'): + url = path + else: + url = self.env.get('baseurl') + path method = api.httpmethod headers = await self.rendertmpl(api.headers) try: