HTTPS: EPIPE can happen here as well
Merge pull request #156 from czaks/master

HTTPS: EPIPE can happen here as well