mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
fix: No shallow copy needed when looking at r.Form (#18499)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
parent
3369eeb920
commit
dd6ea18901
1 changed files with 3 additions and 5 deletions
|
@ -70,8 +70,7 @@ func (a adminAPIHandlers) SiteReplicationAdd(w http.ResponseWriter, r *http.Requ
|
|||
}
|
||||
|
||||
func getSRAddOptions(r *http.Request) (opts madmin.SRAddOptions) {
|
||||
q := r.Form
|
||||
opts.ReplicateILMExpiry = q.Get("replicateILMExpiry") == "true"
|
||||
opts.ReplicateILMExpiry = r.Form.Get("replicateILMExpiry") == "true"
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -411,9 +410,8 @@ func (a adminAPIHandlers) SiteReplicationEdit(w http.ResponseWriter, r *http.Req
|
|||
}
|
||||
|
||||
func getSREditOptions(r *http.Request) (opts madmin.SREditOptions) {
|
||||
q := r.Form
|
||||
opts.DisableILMExpiryReplication = q.Get("disableILMExpiryReplication") == "true"
|
||||
opts.EnableILMExpiryReplication = q.Get("enableILMExpiryReplication") == "true"
|
||||
opts.DisableILMExpiryReplication = r.Form.Get("disableILMExpiryReplication") == "true"
|
||||
opts.EnableILMExpiryReplication = r.Form.Get("enableILMExpiryReplication") == "true"
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue