From 610da4f6628677379f4b3e9288b185625142d50f Mon Sep 17 00:00:00 2001 From: 75py Date: Mon, 8 Jul 2024 01:09:59 +0900 Subject: [PATCH] Fix authorization header validation to handle bearer types correctly - "authorization config header is required" error (#6040) --- api/core/workflow/nodes/http_request/http_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py index 902d821e40..3736c67fb7 100644 --- a/api/core/workflow/nodes/http_request/http_executor.py +++ b/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: