mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
gofmt
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
|||||||
"gopkg.in/op/go-logging.v1"
|
"gopkg.in/op/go-logging.v1"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httputil"
|
|
||||||
"net/http/cookiejar"
|
"net/http/cookiejar"
|
||||||
|
"net/http/httputil"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
@@ -161,7 +161,7 @@ func (c *Cli) delete(uri string) (*http.Response, error) {
|
|||||||
func (c *Cli) makeRequestWithContent(method string, uri string, content string) (*http.Response, error) {
|
func (c *Cli) makeRequestWithContent(method string, uri string, content string) (*http.Response, error) {
|
||||||
buffer := bytes.NewBufferString(content)
|
buffer := bytes.NewBufferString(content)
|
||||||
req, _ := http.NewRequest(method, uri, buffer)
|
req, _ := http.NewRequest(method, uri, buffer)
|
||||||
|
|
||||||
log.Infof("%s %s", req.Method, req.URL.String())
|
log.Infof("%s %s", req.Method, req.URL.String())
|
||||||
if resp, err := c.makeRequest(req); err != nil {
|
if resp, err := c.makeRequest(req); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -210,7 +210,7 @@ func (c *Cli) makeRequest(req *http.Request) (resp *http.Response, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if log.IsEnabledFor(logging.DEBUG) {
|
if log.IsEnabledFor(logging.DEBUG) {
|
||||||
out, _ := httputil.DumpRequest(req,true);
|
out, _ := httputil.DumpRequest(req, true)
|
||||||
log.Debugf("Request: %s", out)
|
log.Debugf("Request: %s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,7 +231,7 @@ func (c *Cli) makeRequest(req *http.Request) (resp *http.Response, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if log.IsEnabledFor(logging.DEBUG) {
|
if log.IsEnabledFor(logging.DEBUG) {
|
||||||
out, _ := httputil.DumpResponse(resp,true);
|
out, _ := httputil.DumpResponse(resp, true)
|
||||||
log.Debugf("Response: %s", out)
|
log.Debugf("Response: %s", out)
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user