replace proxy /weave endpoint with /status

which is more standard with others, and doesn't conflict with docker api
This commit is contained in:
Paul Bellamy committed 2015-05-29 15:48:33 +01:00
1 parent 6e2bb075a6
commit 2be69634df
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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)