Skip to content

Commit

Permalink
For ssl, https should be used to make the request
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
ktonon authored and omsmith committed Jun 20, 2015
1 parent bd321c2 commit 5be2259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/outcomes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class OutcomeService
options.port = @service_url_parts.port

# Make the request to the TC, verifying that the status code is valid and fetching the entire response body.
req = http.request options, (res) =>
req = (if is_ssl then https else http).request options, (res) =>
res.setEncoding 'utf8'
res.on 'data', (chunk) => body += chunk
res.on 'end', () =>
Expand Down

0 comments on commit 5be2259

Please sign in to comment.