Skip to content

Commit acfd915

Browse files
committed
fix: http error
1 parent 36b04a5 commit acfd915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitingest/parse_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _parse_url(url: str) -> dict[str, Any]:
100100
url = url.split(" ")[0]
101101
url = unquote(url) # Decode URL-encoded characters
102102

103-
if not url.startswith("https://"):
103+
if not url.startswith("https://") and not url.startswith("http://"):
104104
url = "https://" + url
105105

106106
# Extract domain and path

0 commit comments

Comments
 (0)