We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29e31a commit 0163acaCopy full SHA for 0163aca
ios/CodePush/CodePushUpdateUtils.m
@@ -93,7 +93,7 @@ + (NSString *)computeFinalHashFromManifest:(NSMutableArray *)manifest
93
// The JSON serialization turns path separators into "\/", e.g. "CodePush\/assets\/image.png"
94
manifestString = [manifestString stringByReplacingOccurrencesOfString:@"\\/"
95
withString:@"/"];
96
- return [self computeHashForData:[NSData dataWithBytes:manifestString.UTF8String length:manifestString.length]];
+ return [self computeHashForData:[NSData dataWithBytes:manifestString.UTF8String length:[manifestString lengthOfBytesUsingEncoding:NSUTF8StringEncoding]]];
97
}
98
99
+ (NSString *)computeHashForData:(NSData *)inputData
0 commit comments