Changed to check for case insensitive http: and https:

Small Fix for #3013