HTTPS handler: fixes Anorov/PySocks#4