Compare commits

..

No commits in common. "888f29383e1aaa7c04d7ac638c3852f6918bf0bf" and "de4a4a86430b66a9aac794d7685eb7ecc011616a" have entirely different histories.

View File

@ -10,8 +10,6 @@ import (
"net/http"
)
const UserAgent = "go-lifx"
type (
Client struct {
accessToken string
@ -58,8 +56,6 @@ func (c *Client) NewRequest(method, url string, body io.Reader) (req *http.Reque
return
}
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.accessToken))
req.Header.Add("Content-Type", "application/json")
req.Header.Add("User-Agent", UserAgent)
return
}