1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-11 05:55:57 +00:00

Merge pull request #1860 from lrita/master

fix the invalid format of Context.RequestParams.Get() when the value is not string type
This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-17 22:46:37 +02:00
committed by GitHub

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