error: write->writeTo

This commit is contained in:
Xiang Li
2014-10-27 15:32:36 -07:00
parent 94e4595af5
commit d0604c7d5c
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ func (e Error) toJsonString() string {
return string(b)
}
func (e Error) Write(w http.ResponseWriter) {
func (e Error) WriteTo(w http.ResponseWriter) {
w.Header().Add("X-Etcd-Index", fmt.Sprint(e.Index))
// 3xx is raft internal error
status := http.StatusBadRequest