You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gaby
changed the title
馃悰 [Bug]: Monitor middleware ignores custom settings if title is not changed
馃悰 [Bug]: Monitor middleware ignores custom settings if default title is used.
Aug 17, 2022
Bug Description
When using the monitor middleware I noticed that if I don't change the title or refresh rate the other custom settings don't get applied.
The bug is on this line: https://github.com/gofiber/fiber/blob/master/middleware/monitor/config.go#L99
Where if title or refresh rate are the
Default Values
everything else gets ignored in theelse
.How to Reproduce
Run code
Expected Behavior
Custom settings should be applied regardless of title/refresh rate.
Fiber Version
v2.36.0
Code Snippet (optional) (Bug, Font/Chart URLs are ignored)
Code Snippet (Working, Font/Chart URLs get applied)
This bug doesn't show up in monitor_test.go, because the test is changing the
Title
to "New + DefaultTitle".Checklist:
The text was updated successfully, but these errors were encountered: