Skip to content

Commit

Permalink
Add version header, refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Mar 18, 2024
1 parent 56dd91f commit cb76df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func doRequest(req *http.Request, token string, result any) error {

req.Header.Add("Authorization", "Bearer "+token)
req.Header.Add("Accept", "application/vnd.github.v3+json")
req.Header.Add("User-Agent", "Mozilla/5.0")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("X-GitHub-Api-Version", "2022-11-28")

resp, err := httpClient.Do(req)
if err != nil {
Expand Down

0 comments on commit cb76df6

Please sign in to comment.