mirror of
https://github.com/mailgun/groupcache.git
synced 2024-09-28 23:00:56 +00:00
Merge branch 'neill/develop' of github.com:mailgun/groupcache into neill/develop
This commit is contained in:
commit
8dfc9d6c7c
2
http.go
2
http.go
@ -207,7 +207,7 @@ func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
var out pb.SetRequest
|
var out pb.SetRequest
|
||||||
err = proto.Unmarshal(b.Bytes(), &out)
|
err = proto.Unmarshal(b.Bytes(), &out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user