The check that lets a key go only over HTTPS or to this computer ended the host part at `/` or `?`, while the HTTP client also ends it at `#`, so the two could disagree about the host. It now ends where the client ends it, and over plain HTTP the host part must be exactly this computer's name with at most a valid port: no user name, backslash or stray character. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>