From 34543ce8e22853b3418ff4f56575b4af8cfb3bd7 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 24 Jul 2019 02:24:47 +0300 Subject: [PATCH] fix https://github.com/kataras/iris/issues/1298 --- context/context.go | 4 ++-- go.mod | 2 +- go.sum | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/context/context.go b/context/context.go index 44270a85d..b40b25123 100644 --- a/context/context.go +++ b/context/context.go @@ -2390,8 +2390,8 @@ func (ctx *context) ReadXML(xmlObject interface{}) error { } // IsErrPath can be used at `context#ReadForm`. -// It reports whether the incoming error is type of `formbinder.ErrPath`, -// which can be ignored when server allows unknown post values to be sent by the client. +// It reports whether the incoming error +// can be ignored when server allows unknown post values to be sent by the client. // // A shortcut for the `formbinder#IsErrPath`. var IsErrPath = formbinder.IsErrPath diff --git a/go.mod b/go.mod index dab24ce0d..a37228853 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/gavv/httpexpect v2.0.0+incompatible github.com/hashicorp/go-version v1.2.0 // indirect github.com/iris-contrib/blackfriday v2.0.0+incompatible - github.com/iris-contrib/formBinder v0.0.0-20190104093907-fbd5963f41e1 + github.com/iris-contrib/formBinder v5.0.0+incompatible github.com/iris-contrib/go.uuid v2.0.0+incompatible github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0 github.com/json-iterator/go v1.1.6 diff --git a/go.sum b/go.sum index 2c94b16e5..ec58ee075 100644 --- a/go.sum +++ b/go.sum @@ -10,7 +10,8 @@ github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nI github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= -github.com/iris-contrib/formBinder v0.0.0-20190104093907-fbd5963f41e1/go.mod h1:i8kTYUOEstd/S8TG0ChTXQdf4ermA/e8vJX0+QruD9w= +github.com/iris-contrib/formBinder v5.0.0+incompatible h1:jL+H+cCSEV8yzLwVbBI+tLRN/PpVatZtUZGK9ldi3bU= +github.com/iris-contrib/formBinder v5.0.0+incompatible/go.mod h1:i8kTYUOEstd/S8TG0ChTXQdf4ermA/e8vJX0+QruD9w= github.com/iris-contrib/go.uuid v2.0.0+incompatible h1:XZubAYg61/JwnJNbZilGjf3b3pB80+OQg2qf6c8BfWE= github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI=