Repository: jira-node/node-jira-client (js)

Issue:
Can't set strictSSL to false
Looking at line 22: `this.strictSSL = options.strictSSL || true;`, strictSSL will always be true:

```
$ node
> const obj = { strictSSL: false };
undefined
> obj.strictSSL || true;
true
```

Pull request description:
Bugfix strict ssl
Fixes #54 by allowing strictSSL to be false.

Patch:
diff --git a/src/jira.js b/src/jira.js
index c071698..645a05f 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -19,7 +19,7 @@ export default class JiraApi {
     this.port = options.port || null;
     this.apiVersion = options.apiVersion || '2';
     this.base = options.base || '';
-    this.strictSSL = options.strictSSL || true;
+    this.strictSSL = options.hasOwnProperty('strictSSL') ? options.strictSSL : true;
       // This is so we can fake during unit tests
     this.request = options.request || request;
     this.webhookVersion = options.webHookVersion || '1.0';


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 41cddc1..ebf98a0 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -10,7 +10,7 @@ function getOptions(options) {
     password: actualOptions.password || 'somepassword',
     apiVersion: actualOptions.apiVersion || '2.0',
     base: actualOptions.base || '',
-    strictSSL: actualOptions.strictSSL || true,
+    strictSSL: actualOptions.hasOwnProperty('strictSSL') ? actualOptions.strictSSL : true,
     request: actualOptions.request,
     oauth: actualOptions.oauth || null,
   };
@@ -69,6 +69,16 @@ describe('Jira API Tests', () => {
 
       expect(jira.baseOptions.timeout).to.equal(2);
     });
+
+    it('Constructor with strictSSL off', () => {
+      const jira = new JiraApi(
+        getOptions({
+          strictSSL: false,
+        })
+      );
+
+      expect(jira.strictSSL).to.equal(false);
+    });
   });
 
   describe('makeRequestHeader Tests', () => {