handle https redirect - combined with node-proxy on server