Skip to content

Commit

Permalink
fix(platform): trim prefix in build director (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu authored Dec 3, 2021
1 parent 3d9251f commit b614049
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/platform/registry/cluster/storage/customresource_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ func buildDirector(r *http.Request, config *rest.Config) func(req *http.Request)
}
req.URL = &url.URL{
Scheme: "https",
Host: config.Host,
Path: r.RequestURI,
// TODO: support apiserver with path
Host: strings.TrimPrefix(config.Host, "https://"),
Path: r.RequestURI,
}
}
}

0 comments on commit b614049

Please sign in to comment.