mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-17 15:51:27 +00:00
Move line
This commit is contained in:
parent
36187651e0
commit
c3cc11f8d4
@ -123,10 +123,10 @@ func (c *Client) callRegistry(uri, scope string, manifest uint, delete bool) (st
|
|||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
return "", resp
|
return "", resp
|
||||||
}
|
}
|
||||||
digest := resp.Header.Get("Docker-Content-Digest")
|
|
||||||
|
|
||||||
if delete {
|
if delete {
|
||||||
// Delete by manifest digest reference.
|
// Delete by manifest digest reference.
|
||||||
|
digest := resp.Header.Get("Docker-Content-Digest")
|
||||||
parts := strings.Split(uri, "/manifests/")
|
parts := strings.Split(uri, "/manifests/")
|
||||||
uri = parts[0] + "/manifests/" + digest
|
uri = parts[0] + "/manifests/" + digest
|
||||||
resp, _, errs := c.request.Delete(c.url+uri).Set("Accept", acceptHeader).Set("Authorization", authHeader).Set("User-Agent", "docker-registry-ui").End()
|
resp, _, errs := c.request.Delete(c.url+uri).Set("Accept", acceptHeader).Set("Authorization", authHeader).Set("User-Agent", "docker-registry-ui").End()
|
||||||
|
Loading…
Reference in New Issue
Block a user