From 9f4b696fab067022873d05c394b88a72cedfb62e Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 18 Nov 2019 10:37:25 +0000 Subject: [PATCH] Support CBOR serialization --- web/routes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/routes.go b/web/routes.go index 5e8a627e..2cfcdcf3 100644 --- a/web/routes.go +++ b/web/routes.go @@ -127,6 +127,7 @@ func routes(s *fibre.Fibre) { AllowedContent: map[string]bool{ "application/json": true, "application/cork": true, + "application/cbor": true, "application/msgpack": true, "application/x-www-form-urlencoded": true, }, @@ -152,6 +153,7 @@ func routes(s *fibre.Fibre) { AllowedContent: map[string]bool{ "application/json": true, "application/cork": true, + "application/cbor": true, "application/msgpack": true, "application/x-www-form-urlencoded": true, }, @@ -178,6 +180,7 @@ func routes(s *fibre.Fibre) { "text/plain": true, "application/json": true, "application/cork": true, + "application/cbor": true, "application/msgpack": true, }, }).PathIs("/sql").MethodIsNot("OPTIONS")) @@ -363,6 +366,7 @@ func routes(s *fibre.Fibre) { AllowedContent: map[string]bool{ "application/json": true, "application/cork": true, + "application/cbor": true, "application/msgpack": true, "application/vnd.api+json": true, },