We're only checking the first 4 characters, so that would also cover https:

````
> "http://foo.com/".substring(0,4)
"http"
> "https://foo.com/".substring(0,4)
"http"
````