mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +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 userAgentAsArray = req.get("user-agent");
|
||||||
const userAgent = userAgentAsArray[0] || "";
|
const userAgent = userAgentAsArray || "";
|
||||||
|
|
||||||
return {videoID, userID, service, videoDuration, videoDurationParam, segments, userAgent};
|
return {videoID, userID, service, videoDuration, videoDurationParam, segments, userAgent};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user