Normalize bare FQDNs to explicit HTTPS root URLs #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Running the remote client with a bare FQDN:
./ccwget-remote.py www.circl.lu
does not make the URL interpretation explicit to the user. A bare FQDN should be treated as the root HTTPS URL, and the client should warn that it will search:
https://www.circl.lu/
The normalized URL must then be used for the actual search request. This behavior should apply consistently with the shared client command contract and must not alter explicit schemes, paths, queries, or fragments.
Proposed approach
Scope
Acceptance criteria
Dependencies
None identified.
Fixed in commit
f034424. Positional bare FQDNs now normalize to https://fqdn/ before search and emit a warning unless -q is used. Explicit HTTP/HTTPS URLs preserve paths, queries, and fragments; tests and documentation added.