[ https://issues.apache.org/jira/browse/TIKA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667612#action_12667612 ]
Sami Siren commented on TIKA-193: --------------------------------- I see some of the parsers currently set (or add) content type and some do not. Should we perhaps remove that functionality from parsers instead and rely on AutoDetectParser for setting it. > PDFParser adds mime-type twice > ------------------------------ > > Key: TIKA-193 > URL: https://issues.apache.org/jira/browse/TIKA-193 > Project: Tika > Issue Type: Bug > Affects Versions: 0.3 > Reporter: Jonathan Koren > Priority: Minor > > Using AutoDetectParser to call PDFParser causes the mime-type to be added > twice. It should be added exactly once. > Proposed Fix: > parser/pdf/PDFParser.java should be changed from: > metadata.add(Metadata.CONTENT_TYPE, "application/pdf"); > to: > metadata.set(Metadata.CONTENT_TYPE, "application/pdf"); > as per other Tika bundled parsers. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.