Skip to content

Commit

Permalink
fix: avoid using GOGGalaxyClient user agent
Browse files Browse the repository at this point in the history
this should prevent false positive emails from GOG that users are on old version of Galaxy
  • Loading branch information
imLinguin committed Feb 27, 2025
1 parent 78151d5 commit 416d464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/storeManagers/gog/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GOGCredentials, UserData } from 'common/types/gog'
import { runRunnerCommand } from './library'
import { gogdlAuthConfig } from 'backend/constants'
import { clearCache } from 'backend/utils'
import { app } from 'electron'

function authLogSanitizer(line: string) {
try {
Expand Down Expand Up @@ -75,7 +76,7 @@ export class GOGUser {
.get(`https://embed.gog.com/userData.json`, {
headers: {
Authorization: `Bearer ${user.access_token}`,
'User-Agent': 'GOGGalaxyClient/2.0.45.61 (GOG Galaxy)'
'User-Agent': `HeroicGamesLauncher/${app.getVersion()}`
}
})
.catch((error) => {
Expand Down

0 comments on commit 416d464

Please sign in to comment.