From 7177af84acdddfb3e36b7982cbac982bc7a8d5d5 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Sun, 13 Oct 2019 11:54:14 -0400 Subject: [PATCH] Allow 202 response code for commit Quay returns this status code when pushing Signed-off-by: Evan Cordell --- remotes/docker/pusher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remotes/docker/pusher.go b/remotes/docker/pusher.go index a96fe5a95..e87841bd4 100644 --- a/remotes/docker/pusher.go +++ b/remotes/docker/pusher.go @@ -339,9 +339,9 @@ func (pw *pushWriter) Commit(ctx context.Context, size int64, expected digest.Di } // 201 is specified return status, some registries return - // 200 or 204. + // 200, 202 or 204. switch resp.StatusCode { - case http.StatusOK, http.StatusCreated, http.StatusNoContent: + case http.StatusOK, http.StatusCreated, http.StatusNoContent, http.StatusAccepted: default: return errors.Errorf("unexpected status: %s", resp.Status) }