File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ type HttpHandlerMappings []HttpHandlerMapping
5959
6060// Sort mappings by weight
6161// higher weight means that the mapping is more specific and should be matched first
62- // Example: /clusters/cluster1/ will be matched before /clusters/
62+ // Example: /clusters/cluster1/ will be matched before /clusters/ .
6363func (h HttpHandlerMappings ) Sort () {
6464 for i := range h {
6565 for j := range h {
@@ -82,7 +82,7 @@ func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
8282 // 3. Iterate over mappings and find the one that matches the URL. If found,
8383 // use the handler for that mapping, else use default handler - kcp.
8484 // Mappings are done from most specific to least specific:
85- // Example: /clusters/cluster1/ will be matched before /clusters/
85+ // Example: /clusters/cluster1/ will be matched before /clusters/ .
8686 for _ , m := range h .Mappings {
8787 url , errorCode := h .resolveURL (r )
8888 if errorCode != 0 {
You can’t perform that action at this time.
0 commit comments