1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-11-10 00:20:02 +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 {