Fix for https with a proxy, closes #19