First thanks for your great work.
While using your software I have observed one problem with content type writing.
The content type is lowercased while registering and that leads to a problem in writing this
information out again, because content is case sensitive.
Hi Harald,
I investigate your problem and find that we add the .toLowerCase() due to some errors when it was missing. I keep the point (with the modification) for further testing and if I have more trouble with the lower case than without I'll make the correction.
Huge thanks for your feedback.
Julien
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
First thanks for your great work.
While using your software I have observed one problem with content type writing.
The content type is lowercased while registering and that leads to a problem in writing this
information out again, because content is case sensitive.
in org.openxml4j.opc.internal.ContentTypeManager
Old:
private void addDefaultContentType(String extension, String contentType) {
this.defaultContentType.put(extension.toLowerCase(), contentType.toLowerCase());
}
New:
private void addDefaultContentType(String extension, String contentType) {
this.defaultContentType.put(extension.toLowerCase(), contentType);
}
Regards,
Harald
Hi Harald,
I investigate your problem and find that we add the .toLowerCase() due to some errors when it was missing. I keep the point (with the modification) for further testing and if I have more trouble with the lower case than without I'll make the correction.
Huge thanks for your feedback.
Julien