Subject: | XML::Atom::Client related to XML::Atom::Entry using atom version 1.0 |
XML::Atom::Client has two spots that have the content type of 'application/x.atom+xml'
hardcoded which is fine unless you have the Entry set to use atom 1.0 and the server you are
posting to only accepts 'application/atom+xml' as the 1.0 spec defines. Both createEntry
and updateEntry set the content type and using something like the following gets things
working on my end:
if ($entry->version >= 1) {
$req->content_type('application/atom+xml');
} else {
$req->content_type('application/x.atom+xml');
}
I'll also note that it appears the only docs you have related to atom version 1.0 and 0.3 is in
the Feed module. This was not an area I was looking in when it came to trying to figure out
way XML::Atom::Client/XML::Atom::Entry would not work with Wordpress. I would think that
moving that info into the main module or in it multiple modules would be more helpful.