mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-07 01:46:49 +08:00
Fix authorization header validation to handle bearer types correctly - "authorization config header is required" error (#6040)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user