{"action":"created","issue":{"url":"https://api.github.com/repos/webpro/dyson/issues/65","repository_url":"https://api.github.com/repos/webpro/dyson","labels_url":"https://api.github.com/repos/webpro/dyson/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/webpro/dyson/issues/65/comments","events_url":"https://api.github.com/repos/webpro/dyson/issues/65/events","html_url":"https://github.com/webpro/dyson/pull/65","id":131693310,"number":65,"title":"HTTPS Support","user":{"login":"tomasdev","id":364033,"avatar_url":"https://avatars.githubusercontent.com/u/364033?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasdev","html_url":"https://github.com/tomasdev","followers_url":"https://api.github.com/users/tomasdev/followers","following_url":"https://api.github.com/users/tomasdev/following{/other_user}","gists_url":"https://api.github.com/users/tomasdev/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasdev/subscriptions","organizations_url":"https://api.github.com/users/tomasdev/orgs","repos_url":"https://api.github.com/users/tomasdev/repos","events_url":"https://api.github.com/users/tomasdev/events{/privacy}","received_events_url":"https://api.github.com/users/tomasdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T16:52:58Z","updated_at":"2016-02-07T21:36:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webpro/dyson/pulls/65","html_url":"https://github.com/webpro/dyson/pull/65","diff_url":"https://github.com/webpro/dyson/pull/65.diff","patch_url":"https://github.com/webpro/dyson/pull/65.patch"},"body":"I don't know how to create the proper test. I've tried:\r\n\r\n```javascript\r\n        before(function () {\r\n            var sampleCrt = require('fs').readFileSync(__dirname + '/certs/sample.crt'),\r\n                sampleKey = require('fs').readFileSync(__dirname + '/certs/sample.key');\r\n\r\n            dyson.bootstrap({\r\n                configDir: __dirname + '/dummy',\r\n                port: 8001,\r\n                https: {\r\n                    key: sampleKey,\r\n                    crt: sampleCrt\r\n                }\r\n            });\r\n        });\r\n\r\n        it('should respond on https protocol', function (done) {\r\n            request(app).get('/dummy/1').expect(200, {}, done);\r\n        });\r\n```\r\n\r\nbut I'm getting a 404 instead of the expected 200, for whatever reason.\r\n\r\nDoesn't break any current test anyway."},"comment":{"url":"https://api.github.com/repos/webpro/dyson/issues/comments/181122385","html_url":"https://github.com/webpro/dyson/pull/65#issuecomment-181122385","issue_url":"https://api.github.com/repos/webpro/dyson/issues/65","id":181122385,"user":{"login":"tomasdev","id":364033,"avatar_url":"https://avatars.githubusercontent.com/u/364033?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasdev","html_url":"https://github.com/tomasdev","followers_url":"https://api.github.com/users/tomasdev/followers","following_url":"https://api.github.com/users/tomasdev/following{/other_user}","gists_url":"https://api.github.com/users/tomasdev/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasdev/subscriptions","organizations_url":"https://api.github.com/users/tomasdev/orgs","repos_url":"https://api.github.com/users/tomasdev/repos","events_url":"https://api.github.com/users/tomasdev/events{/privacy}","received_events_url":"https://api.github.com/users/tomasdev/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T21:36:15Z","updated_at":"2016-02-07T21:36:15Z","body":"@webpro considering express allows https, why dyson shouldn't?\r\n\r\nMy use case is integrating against a JS API that requires https to work, because it's authentication-related. I'm using dyson for my e2e tests, therefore, I made the changes of this PR to support it and maybe it was useful for someone else as a feature."}}