diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-21 22:04:19 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-21 22:04:19 -0400 |
commit | bded77fe18a8acb6397835a836ac68f7435bf3d4 (patch) | |
tree | 77e319f53b1d7cb79dc2e5f5a48f44556429ece6 /http.go | |
parent | 4f0847bb24a5df77f88c883461491a2f6fd955d7 (diff) | |
download | getwtxt-bded77fe18a8acb6397835a836ac68f7435bf3d4.tar.gz |
runtime bugs re: http400 and database reading on startup
Diffstat (limited to 'http.go')
-rw-r--r-- | http.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/http.go b/http.go index 1f6126c..9b5dd81 100644 --- a/http.go +++ b/http.go @@ -45,10 +45,9 @@ func log200(r *http.Request) { } // log output for 400s -func log400(w http.ResponseWriter, r *http.Request, err error) { +func log400(r *http.Request, err error) { uip := getIPFromCtx(r.Context()) log.Printf("*** %v :: 400 :: %v %v :: %v\n", uip, r.Method, r.URL, err) - http.Error(w, err.Error(), http.StatusBadRequest) } // log output for 404s |