Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
The current value for rejectUnauthorized is set in this way: ```javascript this.rejectUnauthorized = settings.rejectUnauthorized || true; ``` but if in the constructor we pass the value `false` it will resolve in `false || true` which is true. I've tested this change and it seems to work when using self-signed SSL certificates. This commit will only include the src file as I don't know if to include the compiled assets. note: in the issue #98 @AntonKrutikov suggested this change ```javascript this.rejectUnauthorized = settings.rejectUnauthorized ?? true; ``` but it will not be transpiled correctly so I used the "old fashion" style and `npm run compile` worked correctly. Co-authored-by: Toppi Giovanni Manuel <[email protected]>
- Loading branch information