We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dabfa9f + 3e3de84 commit 2db2324Copy full SHA for 2db2324
controllers/nginx/nginx/nginx.go
@@ -88,12 +88,13 @@ type Location struct {
88
}
89
90
// LocationByPath sorts location by path
91
+// Location / is the last one
92
type LocationByPath []*Location
93
94
func (c LocationByPath) Len() int { return len(c) }
95
func (c LocationByPath) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
96
func (c LocationByPath) Less(i, j int) bool {
- return c[i].Path < c[j].Path
97
+ return c[i].Path > c[j].Path
98
99
100
// NewDefaultServer return an UpstreamServer to be use as default server that returns 503.
0 commit comments