mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
gofmt
This commit is contained in:
@@ -176,7 +176,7 @@ func New(options Options) *Cors {
|
||||
break
|
||||
} else if i := strings.IndexByte(origin, '*'); i >= 0 {
|
||||
// Split the origin in two: start and end string without the *
|
||||
w := wildcard{origin[0:i], origin[i+1 : len(origin)]}
|
||||
w := wildcard{origin[0:i], origin[i+1:]}
|
||||
c.allowedWOrigins = append(c.allowedWOrigins, w)
|
||||
} else {
|
||||
c.allowedOrigins = append(c.allowedOrigins, origin)
|
||||
|
||||
Reference in New Issue
Block a user