mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-22 20:11:18 +00:00
Fix: Set authorization token on client request
This commit is contained in:
parent
36c9359152
commit
7017b80dee
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ func (c *Client) do(method, path string, body io.Reader) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req.Header.Set("Authorization", c.token)
|
||||||
|
|
||||||
req = req.WithContext(c.context)
|
req = req.WithContext(c.context)
|
||||||
res, err := http.DefaultClient.Do(req)
|
res, err := http.DefaultClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue