Ver código fonte

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

Co-authored-by: Peter Xin <iami@Artemis.local>
tags/1.4.2
不如归去 5 meses atrás
pai
commit
c29cb503be
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      api/core/tools/custom_tool/tool.py

+ 1
- 1
api/core/tools/custom_tool/tool.py Ver arquivo

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

Carregando…
Cancelar
Salvar