File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
2929 let validatesDomainName = ( isDefined ( options . validatesDomainName ) ) ? options . validatesDomainName : true ;
3030 policies . secure . validatesDomainName = validatesDomainName ;
3131 let data = NSData . dataWithContentsOfFile ( options . certificate ) ;
32- // console.log('data.description', data.description)
33- // console.log('data.bytes', data.bytes)
34- // console.log('data.base64Encoding()', data.base64Encoding())
35- // console.log('data.length', data.length)
32+
3633 policies . secure . pinnedCertificates = NSSet . setWithObject ( data )
3734 }
3835 policies . secured = true ;
@@ -84,7 +81,6 @@ export function request(options: Https.HttpsRequestOptions): Promise<Https.Https
8481
8582 if ( options . body ) {
8683 const body = options && options . body ? options . body : null ;
87-
8884 let jsonString = NSString . stringWithString ( JSON . stringify ( body ) ) ;
8985 request . HTTPBody = jsonString . dataUsingEncoding ( NSUTF8StringEncoding ) ;
9086 }
You can’t perform that action at this time.
0 commit comments