Ref https://github.com/home-assistant/core/issues/105292#issuecomment-1979244046 - it seems like it's possible to set arbitrary headers to be sent in every request initiated through some davclient object, except User-Agent and some others. Now it's probably a good idea not to touch the Content-Type or Accept-headers, but the User-Agent should be possible to configure freely.
Ref https://github.com/home-assistant/core/issues/105292#issuecomment-1979244046 - it seems like it's possible to set arbitrary headers to be sent in every request initiated through some davclient object, except
User-Agent
and some others. Now it's probably a good idea not to touch theContent-Type
orAccept
-headers, but theUser-Agent
should be possible to configure freely.Also, passing
{}
as default parameter is dangerous, ref https://stackoverflow.com/questions/26320899/why-is-the-empty-dictionary-a-dangerous-default-value-in-python