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 24085c9 commit 3978913Copy full SHA for 3978913
2 files changed
demo/app/main-page.ts
@@ -47,7 +47,7 @@ export function getHttpbin() {
47
}
48
49
export function getHttpbinLargeResponse() {
50
- getRequest('https://httpbin.org/bytes/100000', true);
+ getRequest('https://httpbin.org/bytes/100000', true);
51
52
53
export function getMockbin() {
src/https.android.ts
@@ -42,10 +42,7 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
42
return;
43
44
peer.host = options.host;
45
- peer.commonName = options.host;
46
- if ( options.commonName != null ) {
- peer.commonName = options.commonName;
- }
+ peer.commonName = options.commonName || options.host;
peer.certificate = certificate;
if (options.allowInvalidCertificates === true) {
peer.allowInvalidCertificates = true;
0 commit comments