1
0
mirror of https://github.com/Luzifer/mondash.git synced 2024-09-19 17:02:58 +00:00

Fix: Set authorization token on client request

This commit is contained in:
Knut Ahlers 2016-09-06 18:34:14 +02:00
parent 36c9359152
commit 7017b80dee
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -46,6 +46,8 @@ func (c *Client) do(method, path string, body io.Reader) error {
return err
}
req.Header.Set("Authorization", c.token)
req = req.WithContext(c.context)
res, err := http.DefaultClient.Do(req)
if err != nil {