Skip to content

Commit 13df266

Browse files
Removed verifySsl option, since Axios doesn't provide any option for it
1 parent 2c43b83 commit 13df266

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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` |

index.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default class WooCommerceRestApi {
5151
this.isHttps = /^https/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,

0 commit comments

Comments
 (0)