diff --git a/server/src/main/java/org/eclipse/openvsx/ExtensionProcessor.java b/server/src/main/java/org/eclipse/openvsx/ExtensionProcessor.java index 358f1677b..a727a0fa5 100644 --- a/server/src/main/java/org/eclipse/openvsx/ExtensionProcessor.java +++ b/server/src/main/java/org/eclipse/openvsx/ExtensionProcessor.java @@ -448,6 +448,10 @@ private Map parseContentTypesXml(byte[] content) { var element = elements.item(i); var attributes = element.getAttributes(); var extension = attributes.getNamedItem("Extension").getTextContent(); + if(!extension.startsWith(".")) { + extension = "." + extension; + } + var contentType = attributes.getNamedItem("ContentType").getTextContent(); contentTypes.put(extension, contentType); }