support SPDY / TLS and redirect http to https