Use HTTP proxy for HTTPS as well.

Ticket: #7169
(cherry picked from commit 0a4b9cc7f6c512d5f3969c6d561f0ea939d1057f)