Skip to content
Browse files

read protocol from url in getPrivateUrl

  • Loading branch information...
1 parent 8e1b10a commit b66820e4ab0d05d03d81e939580c8f51c213c08c @tellnes committed Apr 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/index.js
View
1 lib/index.js
@@ -439,6 +439,7 @@ CloudFront.prototype.getPrivateUrl = function(a, b, c, d) {
var obj = url.parse(a);
config.hostname = obj.hostname;
config.path = obj.path;
+ config.secure = obj.protocol === 'https:';
}
// args 1 and 2

0 comments on commit b66820e

Please sign in to comment.
Something went wrong with that request. Please try again.