Commit 62755427 authored by Frank Denis's avatar Frank Denis

Always include the Accept: header in GET queries

parent a4f5e98f
......@@ -252,7 +252,7 @@ func (xTransport *XTransport) Fetch(method string, url *url.URL, accept string,
func (xTransport *XTransport) Get(url *url.URL, accept string, timeout time.Duration) (*http.Response, time.Duration, error) {
return xTransport.Fetch("GET", url, "", "", nil, timeout, nil)
return xTransport.Fetch("GET", url, accept, "", nil, timeout, nil)
func (xTransport *XTransport) Post(url *url.URL, accept string, contentType string, body []byte, timeout time.Duration, padding *string) (*http.Response, time.Duration, error) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment