浏览代码

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

Co-authored-by: Peter Xin <iami@Artemis.local>
tags/1.4.2
不如归去 5 个月前
父节点
当前提交
c29cb503be
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/core/tools/custom_tool/tool.py

+ 1
- 1
api/core/tools/custom_tool/tool.py 查看文件

@@ -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:

正在加载...
取消
保存