Merge branch 'neill/develop' of github.com:mailgun/groupcache into neill/develop

This commit is contained in:
censhin 2021-10-04 15:21:07 -04:00
commit 8dfc9d6c7c

View File

@ -207,7 +207,7 @@ func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) {
var out pb.SetRequest
err = proto.Unmarshal(b.Bytes(), &out)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
http.Error(w, err.Error(), http.StatusBadRequest)
return
}