replace proxy /weave endpoint with /status
which is more standard with others, and doesn't conflict with docker api
This commit is contained in:
1 parent
6e2bb075a6
commit
2be69634df
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
proxy.serveWithInterceptor(&startContainerInterceptor{proxy.client, proxy.withDNS, proxy.withIPAM}, w, r)
|
||||
case execCreateRegexp.MatchString(path):
|
||||
proxy.serveWithInterceptor(&createExecInterceptor{proxy.client, proxy.withIPAM}, w, r)
|
||||
case strings.HasPrefix(path, "/weave"):
|
||||
case strings.HasPrefix(path, "/status"):
|
||||
w.WriteHeader(http.StatusOK)
|
||||
default:
|
||||
proxy.serveWithInterceptor(&nullInterceptor{}, w, r)
|
||||
|
||||
Reference in new issue
Block a user