compatibility changes for SSLv3 and redirects