From 766923be023de3b75e3a0c9cf5cd60acb2b86abe Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Mon, 16 Feb 2015 15:19:25 -0800 Subject: [PATCH] dont write response to log unless request, otherwise response body will have been read and unavailable to parse later in client code --- jira/cli/cli.go | 1 - 1 file changed, 1 deletion(-) diff --git a/jira/cli/cli.go b/jira/cli/cli.go index d009f49..0e9034d 100644 --- a/jira/cli/cli.go +++ b/jira/cli/cli.go @@ -156,7 +156,6 @@ func (c *Cli) makeRequest(req *http.Request) (resp *http.Response, err error) { } else { if resp.StatusCode < 200 || resp.StatusCode >= 300 && resp.StatusCode != 401 { log.Error("response status: %s", resp.Status) - resp.Write(os.Stderr) } runtime.SetFinalizer(resp, func(r *http.Response) {