Allow 202 response code for commit
Quay returns this status code when pushing Signed-off-by: Evan Cordell <cordell.evan@gmail.com>
This commit is contained in:
parent
57cfc90260
commit
7177af84ac
@ -339,9 +339,9 @@ func (pw *pushWriter) Commit(ctx context.Context, size int64, expected digest.Di
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 201 is specified return status, some registries return
|
// 201 is specified return status, some registries return
|
||||||
// 200 or 204.
|
// 200, 202 or 204.
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case http.StatusOK, http.StatusCreated, http.StatusNoContent:
|
case http.StatusOK, http.StatusCreated, http.StatusNoContent, http.StatusAccepted:
|
||||||
default:
|
default:
|
||||||
return errors.Errorf("unexpected status: %s", resp.Status)
|
return errors.Errorf("unexpected status: %s", resp.Status)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user