File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed
Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ const api = new WooCommerceRestApi({
5858| ` consumerSecret ` | ` String ` | yes | Your API consumer secret |
5959| ` wpAPIPrefix ` | ` String ` | no | Custom WP REST API URL prefix, used to support custom prefixes created with the ` rest_url_prefix ` filter |
6060| ` version ` | ` String ` | no | API version, default is ` v3 ` |
61- | ` verifySsl ` | ` Bool ` | no | Verify SSL when connect, use this option as ` false ` when need to test with self-signed certificates |
6261| ` encoding ` | ` String ` | no | Encoding, default is 'utf-8' |
6362| ` queryStringAuth ` | ` Bool ` | no | When ` true ` and using under HTTPS force Basic Authentication as query string, default is ` false ` |
6463| ` port ` | ` string ` | no | Provide support for URLs with ports, eg: ` 8080 ` |
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ export default class WooCommerceRestApi {
5151 this . isHttps = / ^ h t t p s / i. test ( this . url ) ;
5252 this . consumerKey = opt . consumerKey ;
5353 this . consumerSecret = opt . consumerSecret ;
54- this . verifySsl = opt . verifySsl || true ;
5554 this . encoding = opt . encoding || "utf8" ;
5655 this . queryStringAuth = opt . queryStringAuth || false ;
5756 this . port = opt . port || "" ;
@@ -214,10 +213,6 @@ export default class WooCommerceRestApi {
214213 }
215214
216215 options . params = { ...options . params , ...params } ;
217-
218- if ( ! this . verifySsl ) {
219- options . strictSSL = false ;
220- }
221216 } else {
222217 options . params = this . _getOAuth ( ) . authorize ( {
223218 url : url ,
You can’t perform that action at this time.
0 commit comments