Fixed incorrect Schemes reference in AWS node

This commit is contained in:
Mattabyte
2025-01-31 16:37:19 +10:00
parent e646752209
commit 4b0c5ca09d
+2 -2
View File
@@ -17,8 +17,8 @@ class SecureApiCallAws:
def validate_url(url: str) -> Optional[str]:
try:
parsed = urllib.parse.urlparse(url)
if parsed.scheme not in SecureApiCall.ALLOWED_SCHEMES:
return f"URL scheme must be one of: {', '.join(SecureApiCall.ALLOWED_SCHEMES)}"
if parsed.scheme not in SecureApiCallAws.ALLOWED_SCHEMES:
return f"URL scheme must be one of: {', '.join(SecureApiCallAws.ALLOWED_SCHEMES)}"
return None
except Exception:
return "Invalid URL format"