geier / pycarddav

DEPRECATED - use vdirsyncer & khard -- easy to use CLI CardDAV client
http://lostpackets.de/pycarddav
MIT License
98 stars 35 forks source link

Support for "text/x-vcard; charset=utf-8" as a value for getcontenttype #35

Closed agateau closed 11 years ago

agateau commented 11 years ago

I tried to use pycaldav with the Baïkal carddav server. Initially I couldn't get any vcard. Debugging a bit revealed Baïkal returns "text/x-vcard; charset=utf-8" as a value for getcontenttype.

This branch adds this new value to the accepted ones, it may need to be smarter though, as maybe other servers will return a slightly different type (quoting "utf-8" or something like that)

geier commented 11 years ago

I've merge this to the develop branch, thanks!