Yeah, just for testing. We can't mock it, because Director::is_https is called statically - to mock it we'd need to change Director to be dependancy-injected everywhere first.