Cleaned secure transport detection and fixed one missing case
Merge pull request #70 from RR2DO2/master

Cleaned secure transport detection and fixed one missing case