working commit
This commit is contained in:
+12
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user