File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function getHttpbin() {
4747}
4848
4949export function getHttpbinLargeResponse ( ) {
50- getRequest ( 'https://httpbin.org/bytes/100000' , true ) ;
50+ getRequest ( 'https://httpbin.org/bytes/100000' , true ) ;
5151}
5252
5353export function getMockbin ( ) {
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments