소스 검색

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

75py 9 달 전
부모
커밋
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: