Fix multipart encoded requests over HTTPS