Fix data url support

Reviewed By: @tadeuzagallo

Differential Revision: D2535768

fb-gh-sync-id: 537ecc462e4a8a9e807ccad28a715419f4d5f355
This commit is contained in:
Nick Lockwood 2015-10-13 02:42:16 -07:00 committed by facebook-github-bot-7
parent c456accbed
commit 261100d9d0
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ RCT_EXPORT_MODULE()
static NSSet *schemes = nil; static NSSet *schemes = nil;
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
schemes = [[NSSet alloc] initWithObjects:@"http", @"https", @"file", nil]; schemes = [[NSSet alloc] initWithObjects:@"http", @"https", @"file", @"data", nil];
}); });
return [schemes containsObject:requestURL.scheme.lowercaseString]; return [schemes containsObject:requestURL.scheme.lowercaseString];
} }