[utils] Simplify HTTPS socket creation
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 23 Jan 2015 10:15:18 +0000 (11:15 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 23 Jan 2015 10:15:18 +0000 (11:15 +0100)
commitd79323136fabc2cd72afc7c124e17797e32df514
tree353a3e6b96ad7f154485c11b3611725fc6da5598
parent08ff6ab07e9d08853ca19cf3b8745fac11abf0f6
[utils] Simplify HTTPS socket creation

We were duplicating (bad) code and doing crazy things with SSL.
Just use TLSv1 across the board, and do with one implementation of HTTPSConnection.connect.
Fixes #4696.
youtube_dl/utils.py