Skip to content

Commit 3978913

Browse files
cleanup
1 parent 24085c9 commit 3978913

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

demo/app/main-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function getHttpbin() {
4747
}
4848

4949
export function getHttpbinLargeResponse() {
50-
getRequest('https://httpbin.org/bytes/100000', true);
50+
getRequest('https://httpbin.org/bytes/100000', true);
5151
}
5252

5353
export function getMockbin() {

src/https.android.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
4242
return;
4343
}
4444
peer.host = options.host;
45-
peer.commonName = options.host;
46-
if ( options.commonName != null ) {
47-
peer.commonName = options.commonName;
48-
}
45+
peer.commonName = options.commonName || options.host;
4946
peer.certificate = certificate;
5047
if (options.allowInvalidCertificates === true) {
5148
peer.allowInvalidCertificates = true;

0 commit comments

Comments
 (0)