app: drop FIXME comment

We've made long way since a428a0b1b3 and it's
just no longer relevant, the fix is there in fasthttp version we use and
streaming works fine.
This commit is contained in:
Roman Khimov 2021-04-27 14:34:02 +03:00 committed by Roman Khimov
parent 464a0134bd
commit b94bfb3b76

3
app.go
View file

@ -82,9 +82,6 @@ func newApp(ctx context.Context, opt ...Option) App {
a.webServer.NoDefaultServerHeader = true a.webServer.NoDefaultServerHeader = true
a.webServer.NoDefaultContentType = true a.webServer.NoDefaultContentType = true
a.webServer.MaxRequestBodySize = a.cfg.GetInt(cfgWebMaxRequestBodySize) a.webServer.MaxRequestBodySize = a.cfg.GetInt(cfgWebMaxRequestBodySize)
// -- -- -- -- -- -- FIXME -- -- -- -- -- --
// Does not work with StreamRequestBody due to bugs with
// readMultipartForm, see https://github.com/valyala/fasthttp/issues/968
a.webServer.DisablePreParseMultipartForm = true a.webServer.DisablePreParseMultipartForm = true
a.webServer.StreamRequestBody = a.cfg.GetBool(cfgWebStreamRequestBody) a.webServer.StreamRequestBody = a.cfg.GetBool(cfgWebStreamRequestBody)
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- // -- -- -- -- -- -- -- -- -- -- -- -- -- --