mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 07:27:01 +03:00
Save entire user agent
This commit is contained in:
@@ -550,8 +550,8 @@ function preprocessInput(req: Request) {
|
||||
}
|
||||
});
|
||||
|
||||
const userAgentAsArray = req.get("user-agent")?.split("/");
|
||||
const userAgent = userAgentAsArray[0] || "";
|
||||
const userAgentAsArray = req.get("user-agent");
|
||||
const userAgent = userAgentAsArray || "";
|
||||
|
||||
return {videoID, userID, service, videoDuration, videoDurationParam, segments, userAgent};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user