From 539488587178dab6c3a24e155dac95a1089da78e Mon Sep 17 00:00:00 2001 From: lrita Date: Thu, 17 Mar 2022 20:42:56 +0800 Subject: [PATCH] fix the invalid format of Context.RequestParams.Get() when the value is not string type --- context/request_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/request_params.go b/context/request_params.go index 47cb9689..ea35a520 100644 --- a/context/request_params.go +++ b/context/request_params.go @@ -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) } }