Sfoglia il codice sorgente

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

Co-authored-by: Peter Xin <iami@Artemis.local>
tags/1.4.2
不如归去 5 mesi fa
parent
commit
c29cb503be
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/core/tools/custom_tool/tool.py

+ 1
- 1
api/core/tools/custom_tool/tool.py Vedi 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…
Annulla
Salva