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)
}
}