mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 03:47:04 +00:00
add new ':email' path parameter and revert the jsoniter removal
This commit is contained in:
@@ -53,6 +53,10 @@ func (r *RequestParams) Get(key string) string {
|
||||
return v // it should always be string here on :string parameter.
|
||||
}
|
||||
|
||||
if v, ok := kv.ValueRaw.(fmt.Stringer); ok {
|
||||
return v.String()
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s", kv.ValueRaw)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user