set headers correctly for multipart/form-data posts