Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
}
if v, ok := params[attrsKey]; ok && attrsKey != "" {
}
if v, ok := params[attrsKey]; ok && attrsKey != "" {
- if v, ok := v.(map[string]interface{}); ok {
- // Delete field(s) that appear in responses
- // but not in update attrs, so clients can
- // fetch-modify-update.
- delete(v, "etag")
- delete(v, "unsigned_manifest_text")
- }
params["attrs"] = v
delete(params, attrsKey)
}
params["attrs"] = v
delete(params, attrsKey)
}