Skip to content

Commit

Permalink
Fix from issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaves committed Jun 11, 2017
1 parent 858c90d commit 2e99ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVServiceWorker.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ - (void)createServiceWorkerFromScript:(NSString *)script
[weakSelf.requestDelegates removeObjectForKey:requestId];

// Convert the response body to base64.
NSData *data = [NSData dataFromBase64String:[response[@"body"] toString]];
NSData *data = [[NSData alloc] initWithBase64EncodedString:[response[@"body"] toString] options:0];
JSValue *headers = response[@"headers"];
NSString *mimeType = [headers[@"mimeType"] toString];
NSString *encoding = @"utf-8";
Expand Down

0 comments on commit 2e99ef0

Please sign in to comment.