@cryptotaxi247 / kubo / commits / 8c9ee52a9

commands: Fixed value mutation bug in Request#SetOption

Matt Bell committed Nov 11, 2014 at 23:14 UTC 8c9ee52a934b6fc26f47e3cb01f69a3431b94ca7
1 file changed +1 -1
commands/request.go
+1 -1
@@ -92,7 +92,7 @@ func (r *request) SetOption(name string, val interface{}) {
92
93 // try all the possible names, if we already have a value then set over it
94 for _, n := range option.Names {
95 - val, found := r.options[n]
95 + _, found := r.options[n]
96 if found {
97 r.options[n] = val
98 return