1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 04:21:57 +00:00

fix the invalid format of Context.RequestParams.Get() when the value is not string type

This commit is contained in:
lrita
2022-03-17 20:42:56 +08:00
parent 9cf6f9fa5e
commit 5394885871

View File

@@ -57,7 +57,7 @@ func (r *RequestParams) Get(key string) string {
return v.String()
}
return fmt.Sprintf("%s", kv.ValueRaw)
return fmt.Sprintf("%v", kv.ValueRaw)
}
}