1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-19 13:27:53 +00:00

Fix bool comparison

This commit is contained in:
Fenny 2020-03-04 12:41:38 +01:00
parent 21590dffe9
commit 5e819e5ef5

2
app.go
View File

@ -90,7 +90,7 @@ func New(settings ...*Settings) *App {
}
// If settings exist, set some defaults
if len(settings) > 0 {
if settings[0].Prefork == false { // Default to -prefork flag if false
if !settings[0].Prefork { // Default to -prefork flag if false
settings[0].Prefork = prefork
}
if settings[0].BodyLimit == 0 { // Default MaxRequestBodySize