From e5d79909ab320d082ce64f0b79f6498da3741e5d Mon Sep 17 00:00:00 2001 From: Derrick Wippler Date: Mon, 3 May 2021 11:32:41 -0500 Subject: [PATCH] Minimal go lang version target is 1.13 --- .travis.yml | 3 --- http.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7971fb5..6b7c8dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,6 @@ script: - go test ./... go: - - 1.10.x - - 1.11.x - - 1.12.x - 1.13.x - 1.14.x - 1.15.x diff --git a/http.go b/http.go index 5a9d88b..062ab76 100644 --- a/http.go +++ b/http.go @@ -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 }