fix wrong https value when server value has capital letters. Also is usually a better idea to check for on that for off
Merge pull request #2442 from jesucarr/master

fix wrong https value when server value has capital letters. Also is usually a better idea to check for on that for off