RFR: 8273655: content-types.properties files are missing some common types
Julia Boes
jboes at openjdk.java.net
Wed Sep 15 17:25:47 UTC 2021
On Tue, 14 Sep 2021 09:46:21 GMT, Julia Boes <jboes at openjdk.org> wrote:
> This change adds some common types to the content-type.properties files, notably .js, .css, and .jar, as well as some others.
>
> The duplicated entry for .zip is removed from the Windows properties file.
> _Mailing list message from [Bernd Eckenfels](mailto:ecki at zusammenkunft.net) on [net-dev](mailto:net-dev at mail.openjdk.java.net):_
>
> In the Test List .xml is not mentioned, that looks like a major format.
>
> However I am not sure if it maybe needs extra handling because of possible different mime types for application/xml and text/xml?
.xml is already contained in the properties files as such:
application/xml: \
description=XML document;\
file_extensions=.xml
application/xml seems to be the default type as per RFC7303 [1], I think it should suffice in this context.
Only the new types are added to the test.
[1] https://datatracker.ietf.org/doc/html/rfc7303#section-4.1
-------------
PR: https://git.openjdk.java.net/jdk/pull/5506
More information about the nio-dev
mailing list