client rebuilding in progress
This commit is contained in:
@@ -52,7 +52,9 @@ func (hand *Handler) CheckAccess(rctx *router.Context) (bool, string, error) {
|
||||
|
||||
accountID = terms.AnonymousID
|
||||
|
||||
hand.logg.Debugf("URL: %s", rctx.URL().String())
|
||||
authHeader := rctx.GetHeader("Authorization")
|
||||
hand.logg.Debugf("Authorization: %s", authHeader)
|
||||
if authHeader != "" {
|
||||
username, password, err = auxhttp.ParseBasicAuth(authHeader)
|
||||
if err != nil {
|
||||
|
||||
+3
-2
@@ -57,6 +57,8 @@ func (hand *Handler) BlobExists(rctx *router.Context) {
|
||||
}
|
||||
|
||||
// POST /v2/<name>/blobs/uploads/ 202 404
|
||||
// POST /v2/<name>/blobs/uploads/?digest=<digest> 201/202 404/400
|
||||
// POST /v2/<name>/blobs/uploads/?mount=<digest>&from=<other_name> 201 404
|
||||
func (hand *Handler) PostUpload(rctx *router.Context) {
|
||||
name, _ := rctx.GetSubpath("name")
|
||||
|
||||
@@ -102,8 +104,7 @@ func (hand *Handler) PostUpload(rctx *router.Context) {
|
||||
rctx.SetStatus(code)
|
||||
}
|
||||
|
||||
// POST /v2/<name>/blobs/uploads/?digest=<digest> 201/202 404/400
|
||||
// POST /v2/<name>/blobs/uploads/?mount=<digest>&from=<other_name> 201 404
|
||||
|
||||
|
||||
// PATCH /v2/<name>/blobs/uploads/<reference> 202 404/416
|
||||
func (hand *Handler) PatchUpload(rctx *router.Context) {
|
||||
|
||||
Reference in New Issue
Block a user