diff --git a/configuration.go b/configuration.go index c82a5b8a..97fa48c2 100644 --- a/configuration.go +++ b/configuration.go @@ -328,7 +328,7 @@ func WithCharset(charset string) Configurator { // from the overral request body size which can be modified // by the `context#SetMaxRequestBodySize` or `iris#LimitRequestBodySize`. // -// Defaults to 32MB or 32 << 20 if you prefer. +// Defaults to 32MB or 32 << 20 or 32*iris.MB if you prefer. func WithPostMaxMemory(limit int64) Configurator { return func(app *Application) { app.config.PostMaxMemory = limit diff --git a/go.mod b/go.mod index c2757b37..436b7c19 100644 --- a/go.mod +++ b/go.mod @@ -29,10 +29,12 @@ require ( github.com/microcosm-cc/bluemonday v1.0.2 github.com/ryanuber/columnize v2.1.0+incompatible github.com/schollz/closestmatch v2.1.0+incompatible + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect github.com/square/go-jose/v3 v3.0.0-20200430180204-d84c719419c2 github.com/vmihailenco/msgpack/v5 v5.0.0-alpha.2 go.etcd.io/bbolt v1.3.4 golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37 + golang.org/x/net v0.0.0-20200506145744-7e3656a0809f golang.org/x/text v0.3.2 golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 gopkg.in/ini.v1 v1.57.0 diff --git a/middleware/README.md b/middleware/README.md index 30f83a89..a46ff66f 100644 --- a/middleware/README.md +++ b/middleware/README.md @@ -37,7 +37,7 @@ Most of the experimental handlers are ported to work with _iris_'s handler form, Third-Party Handlers ------------ -Iris has its own middleware form of `func(ctx context.Context)` but it's also compatible with all `net/http` middleware forms. See [here](https://github.com/kataras/iris/tree/master/_examples/convert-handlers). +Iris has its own middleware form of `func(ctx iris.Context)` but it's also compatible with all `net/http` middleware forms. See [here](https://github.com/kataras/iris/tree/master/_examples/convert-handlers). Here's a small list of useful third-party handlers: