I personally would use something like 'ensureProtocol' or something like that. httpFixHost is a strange function name.