1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-05 21:55:51 -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:
Dimas Putra 2022-02-09 16:29:08 +07:00 committed by GitHub
parent 1a1d031ff7
commit f0d4b98ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",