etcdserver/etcdhttp: be specific about the keys path match

release-2.0
Blake Mizerany 2014-08-27 17:59:22 -07:00 committed by Yicheng Qin
parent ddd219f297
commit 07058d3e0b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch {
case strings.HasPrefix(r.URL.Path, "/raft"):
h.serveRaft(ctx, w, r)
case strings.HasPrefix(r.URL.Path, "/keys"):
case strings.HasPrefix(r.URL.Path, "/keys/"):
h.serveKeys(ctx, w, r)
default:
http.NotFound(w, r)