MSP-5358 reimplement
This commit is contained in:
1 parent
e56a2b829f
commit
0c2bcc6cfe
8 files changed
+84
-30
No files matched your search
+3
-2
@@ -120,13 +120,14 @@ func (l Locator) Handler(config conf.Remote, locations []conf.Location, redisCli
|
||||
)
|
||||
}
|
||||
entrypoint := middleware.Entrypoint(
|
||||
config.Http.MaxRequestBodySizeInMb*1024*1024, //nolint:mnd,gomnd
|
||||
config.Http.MaxRequestBodySizeInMb*1024*1024, //nolint:mnd
|
||||
handler,
|
||||
l.logger,
|
||||
middleware.EntryPointConfig{
|
||||
WithPrefix: location.WithPrefix,
|
||||
PathPrefix: location.PathPrefix,
|
||||
},
|
||||
l.routes,
|
||||
l.logger,
|
||||
)
|
||||
mux.PathPrefix(location.PathPrefix).Handler(entrypoint)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user