Skip to content

Commit

Permalink
Fix HTTP REQUEST NODE is always waiting but endpoint have responsed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored May 15, 2024
1 parent 332baca commit 1d0f882
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/core/workflow/nodes/http_request/http_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class HttpExecutorResponse:
response: Union[httpx.Response, requests.Response]

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

@property
Expand Down

0 comments on commit 1d0f882

Please sign in to comment.