Skip to content

Commit

Permalink
api: update fallback user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
maximelouet committed Dec 5, 2023
1 parent 65a8c40 commit a4999ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/LyricsHelper/computeRequestHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const computeRequestHeaders = (clientHeaders) => {
// sites respond differently to mobile user agents so we always choose a desktop one
const userAgent = (clientHeaders['user-agent'] && !clientHeaders['user-agent'].match(/mobile/gi))
? clientHeaders['user-agent']
: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36';
: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36';
return {
'user-agent': userAgent,
'accept-language': clientHeaders['accept-language'] || 'en,en-US;q=0.9',
Expand Down

0 comments on commit a4999ea

Please sign in to comment.