headers['Content-Type'] should not be a tuple

but a string. At least davical complains about wrong mime-type.