Skip to content

Commit af7f712

Browse files
PhilAtWysdom6543
andauthored
Fix: url.Values map was not initialized (#14485)
Values map was not initialized, leading to error 500 on submission of initial configuration Co-authored-by: 6543 <6543@obermui.de>
1 parent 2e90a25 commit af7f712

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/middlewares/flash.go

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ type Flash struct {
2727
}
2828

2929
func (f *Flash) set(name, msg string, current ...bool) {
30+
if f.Values == nil {
31+
f.Values = make(map[string][]string)
32+
}
3033
isShow := false
3134
if (len(current) == 0 && FlashNow) ||
3235
(len(current) > 0 && current[0]) {

0 commit comments

Comments
 (0)