Skip to content

Commit

Permalink
add github useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing-ze committed Dec 26, 2024
1 parent c3bfc83 commit 64ee6ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func makeGitHubHeader(accessToken string) http.Header {
// extra headers required by the GitHub API when making authenticated requests
extraHeaders := map[string]string{
acceptHeader: "application/vnd.github.v3+json",
"User-Agent": "HigressOidcPlugin/1.0",
}
return makeAuthorizationHeader(TokenTypeToken, accessToken, extraHeaders)
}
Expand Down

0 comments on commit 64ee6ed

Please sign in to comment.