Fix passing wrong dictionary to multipart request.

This fixes the issue that each part was twice in the request with same name, but one of them with wrong content.