Win32: handle http->https redirects

This fixes what #1871 does, but on Windows.