aboutsummaryrefslogtreecommitdiffhomepage
path: root/http
diff options
context:
space:
mode:
authorGravatar Nicolas Carlier <n.carlier@nunux.org>2018-02-25 19:49:08 +0000
committerGravatar fguillot <fred@miniflux.net>2018-02-25 11:49:08 -0800
commit34ce1142313b74e21a74c08c6dbd8d4312d7e336 (patch)
treee536c737e3f6d2512644a23bfead7ab5509aedaa /http
parent3030145b3048245405766c3a73a099af82ba9750 (diff)
Add Nunux Keeper integration
Diffstat (limited to 'http')
-rw-r--r--http/client.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/http/client.go b/http/client.go
index 401d621..9bcd14e 100644
--- a/http/client.go
+++ b/http/client.go
@@ -149,11 +149,12 @@ func (c *Client) buildRequest(method string, body io.Reader) (*http.Request, err
return nil, err
}
+ request.Header = c.buildHeaders()
+
if c.username != "" && c.password != "" {
request.SetBasicAuth(c.username, c.password)
}
- request.Header = c.buildHeaders()
return request, nil
}