mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 05:14:35 +03:00
fix: update User-Agent header for GitHub requests and improve commit messages
This commit is contained in:
@@ -225,7 +225,7 @@ func fetchGitHubRaw(ctx context.Context, hc *http.Client, url string, expectedSi
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
req.Header.Set("User-Agent", "thefeed-client")
|
||||
req.Header.Set("User-Agent", "git-client/1.0")
|
||||
// Ask the contents API for raw bytes; without this it returns a JSON
|
||||
// envelope with the body base64-encoded inside.
|
||||
req.Header.Set("Accept", "application/vnd.github.raw")
|
||||
|
||||
Reference in New Issue
Block a user