mirror of
https://github.com/kataras/iris.git
synced 2026-01-22 11:25:59 +00:00
fix https://github.com/kataras/iris/issues/1713 and add a simple usage example of the 'RemoveHandler'
This commit is contained in:
@@ -2280,7 +2280,7 @@ type internalJSONDecoder interface {
|
||||
|
||||
func (cfg JSONReader) getDecoder(r io.Reader, globalShouldOptimize bool) (decoder internalJSONDecoder) {
|
||||
if cfg.Optimize || globalShouldOptimize {
|
||||
decoder = jsoniter.NewDecoder(r)
|
||||
decoder = jsoniter.ConfigCompatibleWithStandardLibrary.NewDecoder(r)
|
||||
} else {
|
||||
decoder = json.NewDecoder(r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user