Skip to content

Commit

Permalink
Media Type done correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed May 24, 2013
1 parent 01bd125 commit 4bab8c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public void writeTo(OrcidMessage xml, Class<?> type, Type genericType, Annotatio
person.addProperty(familyName, personalDetails.getFamilyName().getContent());
}

if (mediaType.toString().contains(APPLICATION_RDFXML)) {
MediaType rdfXml = new MediaType("application", "rdf+xml");
if (mediaType.isCompatible(rdfXml)) {
m.write(entityStream);
} else {
// Must be Turtle or N3 then?
Expand Down

0 comments on commit 4bab8c0

Please sign in to comment.