The h2c-only transport (http2.Transport) fails against backends like Gitea that only speak HTTP/1.1. Switch to standard http.Transport for non-TLS backends, which handles HTTP/1.1 natively and can upgrade to h2c if the backend supports it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>