Migrate to fasthttp v1.20.0

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2021-02-12 18:48:52 +03:00
parent a428a0b1b3
commit 3b8bf3017d
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
2 changed files with 2 additions and 27 deletions

7
app.go
View file

@ -101,13 +101,10 @@ func newApp(ctx context.Context, opt ...Option) App {
// FIXME don't work with StreamRequestBody,
// some bugs with readMultipartForm
// https://github.com/valyala/fasthttp/issues/968
// a.web.DisablePreParseMultipartForm = true
// body streaming
// TODO should be replaced in future with
//
// a.web.StreamRequestBody = v.GetBool(cfgWebStreamRequestBody)
checkAndEnableStreaming(a.log, a.cfg, a.web)
a.web.StreamRequestBody = a.cfg.GetBool(cfgWebStreamRequestBody)
// -- -- -- -- -- -- -- -- -- --
connections := make(map[string]float64)