From f0d4b98ac16af6a7b3345cef512b1f6fed9f47ca Mon Sep 17 00:00:00 2001 From: Dimas Putra Date: Wed, 9 Feb 2022 16:29:08 +0700 Subject: [PATCH] Set content-type header to text/plain This change ensures content-type header is set to ensure correect encoding detection, eg: on pwsh. Resolves: python-poetry/poetry#4845 --- vercel.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/vercel.json b/vercel.json index 78ae0b3..2f069a7 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,24 @@ { + "headers": [ + { + "headers": [ + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + } + ], + "source": "/" + }, + { + "headers": [ + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + } + ], + "source": "/(.+)\\.py" + } + ], "rewrites": [ { "destination": "/install-poetry.py",