瀏覽代碼

Fix authorization header validation to handle bearer types correctly - "authorization config header is required" error (#6040)

tags/0.6.13
75py 1 年之前
父節點
當前提交
610da4f662
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/workflow/nodes/http_request/http_executor.py

+ 1
- 1
api/core/workflow/nodes/http_request/http_executor.py 查看文件

@@ -212,7 +212,7 @@ class HttpExecutor:
raise ValueError('self.authorization config is required')
if authorization.config is None:
raise ValueError('authorization config is required')
if authorization.config.header is None:
if authorization.config.type != 'bearer' and authorization.config.header is None:
raise ValueError('authorization config header is required')

if self.authorization.config.api_key is None:

Loading…
取消
儲存