From 2a503712bbeed49671a8c9a696e39093872c04f7 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:48:29 +0200 Subject: [PATCH] fix(HTTPClient): Adjust more context fields for the iOS client --- src/utils/HTTPClient.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/HTTPClient.ts b/src/utils/HTTPClient.ts index a79625322..0e6ea657c 100644 --- a/src/utils/HTTPClient.ts +++ b/src/utils/HTTPClient.ts @@ -181,10 +181,14 @@ export default class HTTPClient { switch (client) { case 'iOS': + ctx.client.deviceMake = 'Apple'; ctx.client.deviceModel = Constants.CLIENTS.iOS.DEVICE_MODEL; ctx.client.clientVersion = Constants.CLIENTS.iOS.VERSION; ctx.client.clientName = Constants.CLIENTS.iOS.NAME; ctx.client.platform = 'MOBILE'; + ctx.client.osName = 'iOS'; + delete ctx.client.browserName; + delete ctx.client.browserVersion; break; case 'YTMUSIC': ctx.client.clientVersion = Constants.CLIENTS.YTMUSIC.VERSION;