diff --git a/common/obs_utils.go b/common/obs_utils.go index 9e10de5..4ec6291 100644 --- a/common/obs_utils.go +++ b/common/obs_utils.go @@ -253,8 +253,6 @@ func (c *ObsClient) ObsRequest(method string, url string, body io.Reader) (*http return res, nil } - LogDebug(res.StatusCode) - if res.StatusCode == 401 { if c.sshkey == "" { LogDebug("setting basic auth") @@ -304,7 +302,6 @@ func (c *ObsClient) ObsRequest(method string, url string, body io.Reader) (*http // Another time with authentification header LogDebug("Trying again with authorization:", req.Header.Get("Authorization")) - res, err = c.client.Do(req) if err != nil { LogError("Authentification failed:", res.StatusCode)