fix: update User-Agent header for GitHub requests and improve commit messages

This commit is contained in:
Sarto
2026-04-30 23:42:15 +03:30
parent 643452234e
commit fea393a627
2 changed files with 67 additions and 9 deletions
+1 -1
View File
@@ -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")