From 3047bdb21bc959123d264a4190c296aa23cff982 Mon Sep 17 00:00:00 2001 From: Ron Radtke Date: Sat, 22 Jul 2023 22:04:20 +0200 Subject: [PATCH] readme fixes # fixes #166 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d665625b9..5eaa86fcc 100644 --- a/README.md +++ b/README.md @@ -924,12 +924,16 @@ ReactNativeBlobUtil.fetch('POST', 'http://example.com/upload', {'Transfer-Encodi By default, react-native-blob-util does NOT allow connection to unknown certification provider since it's dangerous. To connect a server with self-signed certification, you need to add `trusty` to `config` explicitly. This function is available for version >= `0.5.3` In addition since ``0.16.0`` you'll have to define your own trust manager for android. ````java +.... +import com.ReactNativeBlobUtil.ReactNativeBlobUtilUtils; +... + public class MainApplication extends Application implements ReactApplication { ... @Override public void onCreate() { ... - ReactNativeBlobUtilUtils.sharedTrustManager = final X509TrustManager x509TrustManager = new X509TrustManager() { + ReactNativeBlobUtilUtils.sharedTrustManager = x509TrustManager = new X509TrustManager() { @Override public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { }