Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added secure flag to Y.io if sending an https request

  • Loading branch information...
commit f1f0b4dcfd5156e72fff7b27a9e6d6154577de2f 1 parent e74b5db
@davglass davglass authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yui3-io.js
View
4 lib/yui3-io.js
@@ -27,8 +27,8 @@ YUI.add('io-nodejs', function(Y) {
config.headers['Content-Length'] = config.data.length;
config.headers = Y.merge({ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, config.headers);
}
-
- var host = http.createClient(p, urlInfo.hostname);
+
+ var host = http.createClient(p, urlInfo.hostname, ((p === 443) ? true : false));
var req_url = urlInfo.pathname;
if (urlInfo.search) {
Please sign in to comment.
Something went wrong with that request. Please try again.