projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a126e4
)
14287: Don't delete non-writable attrs in create/update reqs.
14287-build-in-exp-mode
author
Tom Clegg <tclegg@veritasgenetics.com>
Wed, 26 Jun 2019 16:00:05 +0000
(12:00 -0400)
committer
Tom Clegg <tclegg@veritasgenetics.com>
Wed, 26 Jun 2019 16:00:05 +0000
(12:00 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
lib/controller/router/request.go
patch
|
blob
|
history
diff --git
a/lib/controller/router/request.go
b/lib/controller/router/request.go
index c219b1e1de98d85b0b0f473180a808a61358edc2..377f7243c009bef591fffb4b3b53acaf39c0d359 100644
(file)
--- a/
lib/controller/router/request.go
+++ b/
lib/controller/router/request.go
@@
-115,13
+115,6
@@
func (rtr *router) loadRequestParams(req *http.Request, attrsKey string) (map[st
}
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)
}