mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-23 04:21: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
|
||||
}
|
||||
|
||||
req.Header.Set("Authorization", c.token)
|
||||
|
||||
req = req.WithContext(c.context)
|
||||
res, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue