From fbd1af3f9211dc8e3aa08c42d889ea066549337f Mon Sep 17 00:00:00 2001 From: Joshua Bauer Date: Tue, 17 Oct 2023 12:57:10 -0700 Subject: [PATCH] Rename SXG file suffix and remove legacy media types --- CHANGELOG.md | 5 +++++ .../main/java/io/sinistral/proteus/protocol/MediaType.java | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd66655..25c5a40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ Proteus Changelog. ## Unreleased ### No issue +**Added SXG mime types.** + + +[294bc67bdd31e1e](https://github.com/noboomu/proteus/commit/294bc67bdd31e1e) Joshua Bauer *2023-10-17 19:53:47* + **Make controller compilation synchronous.** diff --git a/proteus-core/src/main/java/io/sinistral/proteus/protocol/MediaType.java b/proteus-core/src/main/java/io/sinistral/proteus/protocol/MediaType.java index 94493b3..a009387 100644 --- a/proteus-core/src/main/java/io/sinistral/proteus/protocol/MediaType.java +++ b/proteus-core/src/main/java/io/sinistral/proteus/protocol/MediaType.java @@ -157,7 +157,7 @@ public class MediaType { "SETPAY"); public static final MediaType APPLICATION_SET_REGISTRATION_INITIATION = create( "APPLICATION/SET-REGISTRATION-INITIATION", "SETREG"); - public static final MediaType APPLICATION_SHF_XML = create("application/signed-exchange;v=b3", "sxgs"); + public static final MediaType APPLICATION_SHF_XML = create("application/signed-exchange;v=b3", "sxg"); public static final MediaType APPLICATION_SIGNED_EXCHANGE = create("application/shf+xml", "shf"); public static final MediaType APPLICATION_SLA = create("application/sla", "stl"); public static final MediaType APPLICATION_SMIL = create("application/smil", "smi", "smil"); @@ -605,8 +605,6 @@ public class MediaType { public static final MediaType APPLICATION_VND_SUN_XML_IMPRESS_TEMPLATE = create( "APPLICATION/VND.SUN.XML.IMPRESS.TEMPLATE", "STI"); public static final MediaType APPLICATION_VND_SUN_XML_MATH = create("application/vnd.sun.xml.math", "sxm"); - public static final MediaType APPLICATION_VND_SUN_XML_WRITER_GLOBAL = create( - "application/vnd.sun.xml.writer.global", "SXG"); public static final MediaType APPLICATION_VND_SUN_XML_WRITER = create("application/vnd.sun.xml.writer", "sxw"); public static final MediaType APPLICATION_VND_SUN_XML_WRITER_TEMPLATE = create( "APPLICATION/VND.SUN.XML.WRITER.TEMPLATE", "STW");