Fix GET to http.MethodGet
This commit is contained in:
parent
0206b94abc
commit
b4e56b6ff8
3 changed files with 11 additions and 10 deletions
|
@ -82,7 +82,7 @@ func (c *Client) StreamingPublic(ctx context.Context) (chan Event, error) {
|
|||
defer ctx.Done()
|
||||
|
||||
for {
|
||||
req, err := http.NewRequest("GET", url.String(), nil)
|
||||
req, err := http.NewRequest(http.MethodGet, url.String(), nil)
|
||||
if err == nil {
|
||||
req.Header.Set("Authorization", "Bearer "+c.config.AccessToken)
|
||||
resp, err = c.Do(req)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue