Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible duplicate mimetype setting #36

Open
goetzk opened this issue Oct 2, 2018 · 1 comment
Open

possible duplicate mimetype setting #36

goetzk opened this issue Oct 2, 2018 · 1 comment
Milestone

Comments

@goetzk
Copy link
Member

goetzk commented Oct 2, 2018

DataCiteXML.pm sets mime type during new()

$self->{mimetype} = 'application/xml; charset=utf-8';

DataCiteEvent.pm sets mime type when calling datacite_request

my($response_content, $response_code) =  datacite_request("POST", $url."metadata", $user_name, $user_pw, xml, "application/xml;charset=UTF-8");
@goetzk goetzk added this to the v2.2 milestone Oct 2, 2018
@goetzk
Copy link
Member Author

goetzk commented Oct 3, 2018

I just noticed this happens quite a bit

 grep -r "application/xml" *
DataCiteDoi.epmi:          <mime_type>application/xml</mime_type>
lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm:		my($response_content, $response_code) =  datacite_request("POST", $url."metadata", $user_name, $user_pw, $xml, "application/xml;charset=UTF-8");
lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm:      'Accept'  => 'application/xml',
lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm:    "Accept: application/xml",
lib/plugins/EPrints/Plugin/Export/DataCiteXML.pm:        $self->{mimetype} = 'application/xml; charset=utf-8';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant