mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-23 14:30:57 -05:00
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
This commit is contained in:
parent
1a1d031ff7
commit
f0d4b98ac1
1 changed files with 20 additions and 0 deletions
20
vercel.json
20
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": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"destination": "/install-poetry.py",
|
"destination": "/install-poetry.py",
|
||||||
|
|
Loading…
Reference in a new issue