Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Nov 21, 2023
1 parent 95345fb commit 05c118f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/utils/apiutil/serverapi/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package serverapi

import (
"github.com/tikv/pd/pkg/mcs/utils"
"net/http"
"net/url"
"strings"
Expand Down Expand Up @@ -112,7 +113,7 @@ func MicroserviceRedirectRule(matchPath, targetPath, targetServiceName string,
}

func (h *redirector) matchMicroServiceRedirectRules(r *http.Request) (bool, string) {
if !h.s.IsAPIServiceMode() {
if h.s.IsServiceIndependent(utils.SchedulingServiceName) {
return false, ""
}
if len(h.microserviceRedirectRules) == 0 {
Expand Down

0 comments on commit 05c118f

Please sign in to comment.