Skip to content

Commit

Permalink
Merge pull request #2 from nowdo-hq/x-platform
Browse files Browse the repository at this point in the history
fix: if platform is specified, set x-platform
  • Loading branch information
hirokazumiyaji authored Jun 21, 2021
2 parents 2419541 + d0fe311 commit c521853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c *Client) call(method, path string, reqBody interface{}, platform string,
req.Header.Add("Authorization", "Bearer "+c.apiKey)
req.Header.Add("Content-Type", "application/json")
if platform != "" {
req.Header.Add("X-Platform", "ios")
req.Header.Add("X-Platform", platform)
}

resp, err := c.http.Do(req)
Expand Down

0 comments on commit c521853

Please sign in to comment.