Fix GET to http.MethodGet

This commit is contained in:
178inaba 2017-04-14 23:56:07 +09:00
parent 0206b94abc
commit b4e56b6ff8
3 changed files with 11 additions and 10 deletions

View file

@ -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)