Skip to content

Commit f0d4b98

Browse files
authored
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
1 parent 1a1d031 commit f0d4b98

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

vercel.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
{
2+
"headers": [
3+
{
4+
"headers": [
5+
{
6+
"key": "Content-Type",
7+
"value": "text/plain; charset=utf-8"
8+
}
9+
],
10+
"source": "/"
11+
},
12+
{
13+
"headers": [
14+
{
15+
"key": "Content-Type",
16+
"value": "text/plain; charset=utf-8"
17+
}
18+
],
19+
"source": "/(.+)\\.py"
20+
}
21+
],
222
"rewrites": [
323
{
424
"destination": "/install-poetry.py",

0 commit comments

Comments
 (0)