Fix #20536: Force header in custom tool be string (#20537)

Co-authored-by: Peter Xin <iami@Artemis.local>
This commit is contained in:
不如归去 2025-06-02 18:09:01 +08:00 committed by GitHub
parent 8025ad0661
commit c29cb503be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,7 @@ class ApiTool(Tool):
cookies[parameter["name"]] = value
elif parameter["in"] == "header":
headers[parameter["name"]] = value
headers[parameter["name"]] = str(value)
# check if there is a request body and handle it
if "requestBody" in self.api_bundle.openapi and self.api_bundle.openapi["requestBody"] is not None: