- reqHost() prefers req.URL.Hostname() over req.Host so the ghcr.io
special case fires correctly for ORAS-constructed requests where the
host lives in req.URL, not req.Host
- Add dedicated TestAuthorizer_Do_GHCRSkipsBearerProbe test that sets
the host via URL (as ORAS does) to verify the ghcr.io path
- Redesign Do() retry logic: first attempt uses standard auth; only
after a 401/403 do we retry with ForceAttemptOAuth2=true to support
registries whose token endpoints require OAuth2-style requests
(previously setting it before the first attempt caused 400 errors on
standard registries)
- Disable attemptBearerAuthentication after successful fallback retry
so basic-auth-only registries pay the probe cost only once
- Add GoDoc comments on Authorizer, NewAuthorizer, and EnableCache
Signed-off-by: Terry Howe <terrylhowe@gmail.com>