Browse Source

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

Co-authored-by: Peter Xin <iami@Artemis.local>
tags/1.4.2
不如归去 5 months ago
parent
commit
c29cb503be
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/core/tools/custom_tool/tool.py

+ 1
- 1
api/core/tools/custom_tool/tool.py 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:

Loading…
Cancel
Save