working commit

This commit is contained in:
2026-02-04 22:55:48 +02:00
parent 3900d93559
commit afeab061e9
6 changed files with 117 additions and 65 deletions
+12 -5
View File
@@ -87,14 +87,21 @@ func (hand *Handler) ManifestExists(rctx *router.Context) {
// PUT /v2/<name>/manifests/<reference> 201 404
func (hand *Handler) PutManifest(rctx *router.Context) {
hand.DumpHeaders("PutManifest headers", rctx)
contentType := rctx.GetHeader("Content-Type")
contentLength := rctx.GetHeader("Content-Length")
name, _ := rctx.GetSubpath("name")
reference, _ := rctx.GetSubpath("reference")
contentType := rctx.GetHeader("Content-Type")
params := &operator.PutManifestParams{
ContentType: contentType,
Name: name,
Reference: reference,
Reader: rctx.Request.Body,
ContentType: contentType,
ContentLength: contentLength,
Name: name,
Reference: reference,
Reader: rctx.Request.Body,
}
ctx := rctx.GetContext()
res, code, err := hand.oper.PutManifest(ctx, params)