Fix multipart encoded requests over HTTPS (Issue #210)

I'm not very sure about this fix but it does solve the problem.

I can do a PR on 1.7.x branch too if you want.