diff options
-rw-r--r-- | pipkin.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -177,6 +177,7 @@ func (pk *Pipkin) fetch(w http.ResponseWriter, r *http.Request) { http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound) return } + defer resp.Body.Close() statusOK := resp.StatusCode >= 200 && resp.StatusCode < 400 pk.log.Infof("%s %d %s %s %s\n", r.Method, resp.StatusCode, hostStr, host.Bucket, key) |