mirror of https://github.com/portainer/portainer
fix(api): fix the ability to push images to private repositories
parent
afa3fd9a47
commit
f0317d6d87
|
@ -262,7 +262,7 @@ func (p *proxyTransport) proxyImageRequest(request *http.Request) (*http.Respons
|
|||
case "/images/create":
|
||||
return p.replaceRegistryAuthenticationHeader(request)
|
||||
default:
|
||||
if match, _ := path.Match("/images/*/push", requestPath); match {
|
||||
if path.Base(requestPath) == "push" && request.Method == http.MethodPost {
|
||||
return p.replaceRegistryAuthenticationHeader(request)
|
||||
}
|
||||
return p.executeDockerRequest(request)
|
||||
|
|
Loading…
Reference in New Issue