[SECURITY] Disable HTTP server header (#946)
* [SECURITY] Disable HTTP Server Header * alphabetize fasthttp.Server property assignmentpull/947/head
parent
c9e8a924e0
commit
2437f989cb
|
@ -115,10 +115,11 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi
|
||||||
router.NotFound = ServeIndex(embeddedAssets)
|
router.NotFound = ServeIndex(embeddedAssets)
|
||||||
|
|
||||||
server := &fasthttp.Server{
|
server := &fasthttp.Server{
|
||||||
Handler: middlewares.LogRequestMiddleware(router.Handler),
|
ErrorHandler: autheliaErrorHandler,
|
||||||
ErrorHandler: autheliaErrorHandler,
|
Handler: middlewares.LogRequestMiddleware(router.Handler),
|
||||||
ReadBufferSize: configuration.Server.ReadBufferSize,
|
NoDefaultServerHeader: true,
|
||||||
WriteBufferSize: configuration.Server.WriteBufferSize,
|
ReadBufferSize: configuration.Server.ReadBufferSize,
|
||||||
|
WriteBufferSize: configuration.Server.WriteBufferSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
addrPattern := fmt.Sprintf("%s:%d", configuration.Host, configuration.Port)
|
addrPattern := fmt.Sprintf("%s:%d", configuration.Host, configuration.Port)
|
||||||
|
|
Loading…
Reference in New Issue