Skip to content

Commit 31c3f3f

Browse files
committed
Kia CA fix + version dump for major release (due to Kia fix)
1 parent 7f7685b commit 31c3f3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/bluelink-regions/canada.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class BluelinkCanada extends Bluelink {
3333
language: '0',
3434
brand: this.apiHost === 'mybluelink.ca' ? 'H' : 'kia',
3535
offset: this.getTimeZone().slice(0, 3),
36-
'User-Agent': 'MyHyundai/2.0.25 (iPhone; iOS 18.3; Scale/3.00)',
36+
'User-Agent': config.manufacturer === 'kia' ? 'okhttp/4.12.0' : 'MyHyundai/2.0.25 (iPhone; iOS 18.3; Scale/3.00)',
3737
}
3838
this.authHeader = 'Accesstoken'
3939
this.tempLookup = {
@@ -100,8 +100,8 @@ export class BluelinkCanada extends Bluelink {
100100
await req.load()
101101
if (req.response.cookies) {
102102
for (const cookie of req.response.cookies) {
103-
if (cookie.name.toLowerCase() === 'dtcookie') {
104-
return `dtCookie=${cookie.value}`
103+
if (cookie.name.toLowerCase() === '__cf_bm') {
104+
return `__cf_bm=${cookie.value}`
105105
}
106106
}
107107
}

0 commit comments

Comments
 (0)