Merge pull request #34680 from DefinitelyTyped/fix-request-tests

Use secureOptions in request tests, not securityOptions
This commit is contained in:
Benjamin Lichtman
2019-04-12 13:56:07 -07:00
committed by GitHub
3 changed files with 6 additions and 3 deletions
@@ -1,6 +1,7 @@
import rpn = require('request-promise-native');
import * as errors from 'request-promise-native/errors';
import * as path from 'path';
import constants = require('constants');
rpn('http://www.google.com')
.then(console.dir)
@@ -336,7 +337,7 @@ options = {
// Or use `pfx` property replacing `cert` and `key` when using private key, certificate and CA certs in PFX or PKCS12 format:
// pfx: fs.readFileSync(pfxFilePath),
passphrase: 'password',
securityOptions: 'SSL_OP_NO_SSLv3'
secureOptions: constants.SSL_OP_NO_SSLv3
}
};
@@ -1,6 +1,7 @@
import rp = require('request-promise');
import errors = require('request-promise/errors');
import * as path from "path";
import constants = require('constants');
rp('http://www.google.com')
.then(console.dir)
@@ -355,7 +356,7 @@ options = {
// Or use `pfx` property replacing `cert` and `key` when using private key, certificate and CA certs in PFX or PKCS12 format:
// pfx: fs.readFileSync(pfxFilePath),
passphrase: 'password',
securityOptions: 'SSL_OP_NO_SSLv3'
secureOptions: constants.SSL_OP_NO_SSLv3
}
};
+2 -1
View File
@@ -6,6 +6,7 @@ import qs = require('querystring');
import request = require('request');
import stream = require('stream');
import urlModule = require('url');
import constants = require('constants');
let value: any;
let str: string;
@@ -540,7 +541,7 @@ options = {
// Or use `pfx` property replacing `cert` and `key` when using private key, certificate and CA certs in PFX or PKCS12 format:
// pfx: fs.readFileSync(pfxFilePath),
passphrase: 'password',
securityOptions: 'SSL_OP_NO_SSLv3'
secureOptions: constants.SSL_OP_NO_SSLv3
}
};