You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three small follow-ups to c7517ab:
1. Hoist the duplicate `./` guard above the if/elsif. The guard is a
no-op when neither base_uri nor persistent is set, so it's safe to
factor out — and it lets the two-branch comment collapse into one.
2. Strengthen the persistent regression test. Asserting only on
`req.uri.host` hides an intermediate where make_request_uri returns
a URI with host "example.com." (trailing dot), which only normalises
away because HTTP::URI#normalize_host strips trailing dots. Pin the
full URI (`origin` + `to_s`) so a future change to normalize_host
that lets the dot leak through is caught here.
3. CHANGELOG accuracy. The persistent branch never called `URI#merge`
— it was string concatenation. Distinguish the two branches and
reference RFC 3986 §5.2 for the underlying rule.
0 commit comments