From 886fe83b55bcb4e02db8fe454ea71e3798a9eb9f Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Fri, 13 Oct 2023 19:23:55 -0400 Subject: [PATCH] Fixed the content-type returned for the status endpoints --- vercel.json | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/vercel.json b/vercel.json index a273ea61..2b2e0ce4 100644 --- a/vercel.json +++ b/vercel.json @@ -101,6 +101,60 @@ } }, "headers": [ + + { + "source": "/([^/]*)/(.*)/", + "has": [ + { + "type": "header", + "key": "Accept", + "value": "application/activity\\+json" + } + ], + "headers": [ + { + "key": "content-type", + "value": "application/activity+json" + } + ] + }, + { + "source": "/([^/]*)/(.*)/", + "has": [ + { + "type": "header", + "key": "Accept", + "value": "application/json" + } + ], + "headers": [ + { + "key": "content-type", + "value": "application/json" + } + ] + }, + { + "source": "/([^/]*)/(.*)/", + "missing": [ + { + "type": "header", + "key": "Accept", + "value": "application/activity\\+json" + }, + { + "type": "header", + "key": "Accept", + "value": "application/json" + } + ], + "headers": [ + { + "key": "content-type", + "value": "text/html" + } + ] + }, { "source": "/(.*).ajson", "headers": [