etcdserver: fix streaming handler

release-2.0
Xiang Li 2014-12-29 22:12:58 -08:00
parent c712dd682a
commit f79b9042ab
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ func NewPeerHandler(server *etcdserver.EtcdServer) http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/", http.NotFound)
mux.Handle(rafthttp.RaftPrefix, server.RaftHandler())
mux.Handle(rafthttp.RaftPrefix+"/", server.RaftHandler())
mux.Handle(peerMembersPrefix, mh)
return mux
}