mirror of
https://github.com/minio/minio.git
synced 2025-04-17 01:10:29 -04: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
@ -70,8 +70,7 @@ func (a adminAPIHandlers) SiteReplicationAdd(w http.ResponseWriter, r *http.Requ
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getSRAddOptions(r *http.Request) (opts madmin.SRAddOptions) {
|
func getSRAddOptions(r *http.Request) (opts madmin.SRAddOptions) {
|
||||||
q := r.Form
|
opts.ReplicateILMExpiry = r.Form.Get("replicateILMExpiry") == "true"
|
||||||
opts.ReplicateILMExpiry = q.Get("replicateILMExpiry") == "true"
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -411,9 +410,8 @@ func (a adminAPIHandlers) SiteReplicationEdit(w http.ResponseWriter, r *http.Req
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getSREditOptions(r *http.Request) (opts madmin.SREditOptions) {
|
func getSREditOptions(r *http.Request) (opts madmin.SREditOptions) {
|
||||||
q := r.Form
|
opts.DisableILMExpiryReplication = r.Form.Get("disableILMExpiryReplication") == "true"
|
||||||
opts.DisableILMExpiryReplication = q.Get("disableILMExpiryReplication") == "true"
|
opts.EnableILMExpiryReplication = r.Form.Get("enableILMExpiryReplication") == "true"
|
||||||
opts.EnableILMExpiryReplication = q.Get("enableILMExpiryReplication") == "true"
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user