From e99b75dd91a7c88d0be782b107dd6bfb87990adf Mon Sep 17 00:00:00 2001 From: Ivan <39669357+Mixerou@users.noreply.github.com> Date: Sat, 14 Dec 2024 03:17:32 +0300 Subject: [PATCH] fix: new `MessagePack` subtype Change `msgpack` subtype to `vnd.msgpack` --- mime-parse/src/constants.rs | 4 ++-- src/constants.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mime-parse/src/constants.rs b/mime-parse/src/constants.rs index 634c2bf3..7a194697 100644 --- a/mime-parse/src/constants.rs +++ b/mime-parse/src/constants.rs @@ -403,7 +403,7 @@ names! { // common application/* JSON, "json"; WWW_FORM_URLENCODED, "x-www-form-urlencoded"; - MSGPACK, "msgpack"; + MSGPACK, "vnd.msgpack"; OCTET_STREAM, "octet-stream"; PDF, "pdf"; @@ -463,7 +463,7 @@ mimes! { APPLICATION_JAVASCRIPT_UTF_8, "application/javascript; charset=utf-8", 11, None, 22; APPLICATION_WWW_FORM_URLENCODED, "application/x-www-form-urlencoded", 11; APPLICATION_OCTET_STREAM, "application/octet-stream", 11; - APPLICATION_MSGPACK, "application/msgpack", 11; + APPLICATION_MSGPACK, "application/vnd.msgpack", 11; APPLICATION_PDF, "application/pdf", 11; APPLICATION_DNS, "application/dns-message", 11; diff --git a/src/constants.rs b/src/constants.rs index af4376ec..11f44fad 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -106,7 +106,7 @@ mimes! { APPLICATION_JAVASCRIPT_UTF_8, "application/javascript; charset=utf-8"; APPLICATION_WWW_FORM_URLENCODED, "application/x-www-form-urlencoded"; APPLICATION_OCTET_STREAM, "application/octet-stream"; - APPLICATION_MSGPACK, "application/msgpack"; + APPLICATION_MSGPACK, "application/vnd.msgpack"; APPLICATION_PDF, "application/pdf"; APPLICATION_DNS, "application/dns-message";