Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aca76c7

Browse files
committed
Fix gzip on iOS 9
1 parent f1bd1cb commit aca76c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Base/RCTUtils.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ BOOL RCTIsGzippedData(NSData *data)
386386
return input;
387387
}
388388

389-
void *libz = dlopen("libz.dylib", RTLD_NOW);
389+
void *libz = dlopen("/usr/lib/libz.dylib", RTLD_LAZY);
390390
int (*deflateInit2_)(z_streamp, int, int, int, int, int, const char *, int) = dlsym(libz, "deflateInit2_");
391391
int (*deflate)(z_streamp, int) = dlsym(libz, "deflate");
392392
int (*deflateEnd)(z_streamp) = dlsym(libz, "deflateEnd");

0 commit comments

Comments
 (0)