mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-21 06:53:05 +00:00
Fix bool comparison
This commit is contained in:
parent
21590dffe9
commit
5e819e5ef5
2
app.go
2
app.go
@ -90,7 +90,7 @@ func New(settings ...*Settings) *App {
|
|||||||
}
|
}
|
||||||
// If settings exist, set some defaults
|
// If settings exist, set some defaults
|
||||||
if len(settings) > 0 {
|
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
|
settings[0].Prefork = prefork
|
||||||
}
|
}
|
||||||
if settings[0].BodyLimit == 0 { // Default MaxRequestBodySize
|
if settings[0].BodyLimit == 0 { // Default MaxRequestBodySize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user