fix bug in handleGetSliceMax that was causing protobuf request to return json

This commit is contained in:
Travis 2017-05-16 12:26:25 -05:00
parent 928ee49187
commit e31beb809b
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -258,6 +258,7 @@ func (h *Handler) handleGetSliceMax(w http.ResponseWriter, r *http.Request) {
} else if _, err := w.Write(buf); err != nil {
h.logger().Printf("stream write error: %s", err)
}
return
}
json.NewEncoder(w).Encode(sliceMaxResponse{
MaxSlices: ms,