Skip to content

Prepend https:// to bare domain names in normalize()#64

Merged
santoru merged 1 commit into
masterfrom
fix/bare-domain-normalization
Mar 7, 2026
Merged

Prepend https:// to bare domain names in normalize()#64
santoru merged 1 commit into
masterfrom
fix/bare-domain-normalization

Conversation

@santoru

@santoru santoru commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Bare domain inputs like 'github.com' would pass through normalize() unchanged (only bare IPs were handled), causing urllib to raise ValueError: unknown url type. Now any target without an http:// or https:// scheme gets https:// prepended, matching browser behaviour.

Fixes #57

Bare domain inputs like 'github.com' would pass through normalize()
unchanged (only bare IPs were handled), causing urllib to raise
ValueError: unknown url type. Now any target without an http:// or
https:// scheme gets https:// prepended, matching browser behaviour.

Fixes #57

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@santoru santoru merged commit 74a4d30 into master Mar 7, 2026
5 checks passed
@santoru santoru deleted the fix/bare-domain-normalization branch March 7, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fails when target is just a domain name

1 participant