Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nginx] Should not define a default charset #103

Open
EtienneM opened this issue Nov 25, 2019 · 0 comments
Open

[Nginx] Should not define a default charset #103

EtienneM opened this issue Nov 25, 2019 · 0 comments
Assignees
Labels

Comments

@EtienneM
Copy link
Member

EtienneM commented Nov 25, 2019

We define a charset in the default Nginx configuration (https://github.com/Scalingo/php-buildpack/blob/master/conf/nginx/base.conf.erb#L83).

But then, If a user adds that kind of call in its code:

header("content-type:text/html; charset=iso-8859-1" );

The HTTP response will contain the header:

Content-Type: text/html; charset=UTF-8

Is it possible to remove this line?

https://app.intercom.io/a/apps/w4oogu7s/inbox/inbox/all/conversations/24705196813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants