MSP-325 add receiver argument to http requests handler

This commit is contained in:
DeniskaRediska committed 2021-10-22 11:00:49 +03:00
1 parent 05bdf75e95
commit 24b22aa7f1
2 files changed
+12 -11

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func (s *httpSrv) run(maxRequestBodySize int64) {
localConfig := config.Get().(*conf.Configuration)
restAddress := localConfig.HttpInnerAddress.GetAddress()
s.srv = &fasthttp.Server{
Handler: handler.CompleteRequest,
Handler: handler.New().CompleteRequest,
WriteTimeout: defaultTimeout,
ReadTimeout: defaultTimeout,
MaxRequestBodySize: int(maxRequestBodySize),