forked from TrueCloudLab/frostfs-http-gw
Migrate to fasthttp v1.20.0
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
a428a0b1b3
commit
3b8bf3017d
2 changed files with 2 additions and 27 deletions
7
app.go
7
app.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue