Improve SSL detection
Merge pull request #116 from ffffelix/master

Improve SSL detection