mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
Fix HTTP REQUEST NODE is always waiting but endpoint have responsed (#4395)
This commit is contained in:
parent
332baca538
commit
1d0f88264f
|
@ -25,7 +25,10 @@ class HttpExecutorResponse:
|
||||||
response: Union[httpx.Response, requests.Response]
|
response: Union[httpx.Response, requests.Response]
|
||||||
|
|
||||||
def __init__(self, response: Union[httpx.Response, requests.Response] = None):
|
def __init__(self, response: Union[httpx.Response, requests.Response] = None):
|
||||||
self.headers = response.headers
|
self.headers = {}
|
||||||
|
if isinstance(response, httpx.Response | requests.Response):
|
||||||
|
for k, v in response.headers.items():
|
||||||
|
self.headers[k] = v
|
||||||
self.response = response
|
self.response = response
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user