mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix full user agent being saved
This commit is contained in:
parent
8f0f01e6b2
commit
ee8d20a43d
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ function preprocessInput(req: Request) {
|
|||
}
|
||||
});
|
||||
|
||||
const userAgent = req.get("user-agent") ?? parseUserAgent(req.get("User-Agent")) ?? "";
|
||||
const userAgent = req.query.userAgent ?? req.body.userAgent ?? parseUserAgent(req.get("user-agent")) ?? "";
|
||||
|
||||
return {videoID, userID, service, videoDuration, videoDurationParam, segments, userAgent};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue