Skip to content

Commit 27b723a

Browse files
authored
fixe(domain): wildcard parse bug (#106)
1 parent 30792dc commit 27b723a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (c Config) parseWildcardRules() [][]string {
138138
continue
139139
}
140140
if i == (len(o) - 1) {
141-
wRules = append(wRules, []string{o[:i-1], "*"})
141+
wRules = append(wRules, []string{o[:i], "*"})
142142
continue
143143
}
144144

0 commit comments

Comments
 (0)