Skip to content

Commit

Permalink
fix: analyitcs jailbraek name
Browse files Browse the repository at this point in the history
  • Loading branch information
elihwyma committed Jun 18, 2023
1 parent 9f5046f commit 1b86678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Zebra/Extensions/NSURLSession+Zebra.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ + (NSMutableDictionary *)zbra_Sec_Headers {
#else
NSString *platform = @"macos";
#endif
NSString *ua = [NSString stringWithFormat: @"Zebra;v=%@;t=client,%@;t=jailbreak,%@;t=distribution", @PACKAGE_VERSION, [ZBDevice jailbreakName], [ZBDevice bootstrapName]];
NSString *jailbreak = [[[ZBDevice jailbreakName] lowercaseString] stringByReplacingOccurrencesOfString:@" " withString:@""];
NSString *ua = [NSString stringWithFormat: @"Zebra;v=%@;t=client,%@;t=jailbreak,%@;t=distribution", @PACKAGE_VERSION, jailbreak, [ZBDevice bootstrapName]];
return [[NSMutableDictionary alloc] initWithDictionary:@{
@"Sec-CH-UA-Bitness": [NSString stringWithFormat:@"%lu", sizeof(void *) * 8],
@"Sec-CH-UA-Platform": platform,
Expand Down

0 comments on commit 1b86678

Please sign in to comment.