Small cleanup
Convert protocol ssl:// to https:// when creating http headers
Merge pull request #1133 from msilvoso/master