Skip to content

Commit a517822

Browse files
committed
Clean up
1 parent 7874cc9 commit a517822

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vscode
22
.idea
33
.DS_Store
4+
*.history
45
*.esm.json
56
*.js
67
*.js.map

demo/app/main-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function postHttpbinWithUTF8() {
5757
console.error('Https.request error', error);
5858
dialogs.alert(error);
5959
});
60-
}
60+
}
6161

6262
export function getHttpbin() {
6363
getRequest('https://httpbin.org/get');
@@ -80,7 +80,7 @@ export function enableSSLPinning(args: Observable.EventData) {
8080

8181
export function enableSSLPinningExpired(args: Observable.EventData) {
8282
let dir = fs.knownFolders.currentApp().getFolder('assets');
83-
let certificate = dir.getFile('httpbin.org.expired.cer').path;
83+
let certificate = dir.getFile('httpbin.org.cer').path;
8484
Https.enableSSLPinning({host: 'httpbin.org', certificate});
8585
console.log('enabled');
8686
}

src/https.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function getClient(reload: boolean = false, timeout: number = 10): okhttp3.OkHtt
131131
verify: (hostname: string, session: javax.net.ssl.SSLSession): boolean => {
132132
let pp = session.getPeerPrincipal().getName();
133133
let hv = javax.net.ssl.HttpsURLConnection.getDefaultHostnameVerifier();
134-
if(peer.commonName && peer.commonName[0] === "*") {
134+
if (peer.commonName && peer.commonName[0] === "*") {
135135
return (hv.verify(peer.host, session) &&
136136
hostname.indexOf(peer.host) > -1 &&
137137
hostname.indexOf(session.getPeerHost()) > -1 &&

0 commit comments

Comments
 (0)