mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 11:51:46 +02:00
fixed spacing issues-2
This commit is contained in:
1 parent
321c3dafc0
commit
fa7bd104a0
1 file changed
+2
-2
@@ -162,8 +162,8 @@ def parse_http_spec(http_spec: str) -> LLMSpec:
|
|||||||
|
|
||||||
# Check url validity
|
# Check url validity
|
||||||
valid_url= urlparse(url)
|
valid_url= urlparse(url)
|
||||||
#
|
# if missing the correct formatting ://, urlparse.netloc will be empty
|
||||||
if valid_url.scheme not in ("http", "https") or not valid_url.netloc: # if missing the correct formatting ://, urlparse.netloc will be empty
|
if valid_url.scheme not in ("http", "https") or not valid_url.netloc:
|
||||||
raise InvalidHTTPSpecError(f"Invalid URL: {url}. Ensure it starts with 'http://' or 'https://'")
|
raise InvalidHTTPSpecError(f"Invalid URL: {url}. Ensure it starts with 'http://' or 'https://'")
|
||||||
|
|
||||||
# Initialize headers and body
|
# Initialize headers and body
|
||||||
|
|||||||
Reference in new issue
Block a user