Add naive handling of https endpoints.