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