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
commit af2d017e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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