We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7f376 commit ee05a5eCopy full SHA for ee05a5e
1 file changed
pkg/cmd/push.go
@@ -103,7 +103,8 @@ type authTransport struct {
103
104
func (t *authTransport) RoundTrip(req *http.Request) (*http.Response, error) {
105
if t.token != "" {
106
- // Use Bearer auth directly
+ // Clone request to avoid modifying the original (RoundTripper contract)
107
+ req = req.Clone(req.Context())
108
req.Header.Set("Authorization", "Bearer "+t.token)
109
}
110
return t.base.RoundTrip(req)
0 commit comments