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

fix(template) keep UTF-8 as default for charset directive but make it configurable #10111

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

bungle
Copy link
Member

@bungle bungle commented Jan 13, 2023

Summary

charset directive that was previously hard coded in template with a value of UTF-8 was removed completely with this PR:
#9905

Previous discussion from 3 years ago pointed that this is breaking change (not a fix): #5045

So here is another fix to make the directive still default to UTF-8. which is a quite fine default, but allow users to configure it. E.g.:

KONG_NGINX_HTTP_CHARSET=off kong start

FTI-4551

@bungle bungle force-pushed the fix/charset-default branch from 6d9ede3 to 1dc20d7 Compare January 13, 2023 17:30
@dndx dndx requested a review from catbro666 January 13, 2023 17:31
@dndx dndx added the pr/discussion This PR is being debated. Probably just a few details. label Jan 13, 2023
@bungle bungle force-pushed the fix/charset-default branch 2 times, most recently from 36d7194 to 003eac4 Compare January 13, 2023 17:35
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jan 13, 2023
@bungle bungle force-pushed the fix/charset-default branch 2 times, most recently from 7a31829 to 0f045c2 Compare January 13, 2023 17:40
Copy link

@colinh-kong colinh-kong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where / how do we add a test related to kong portal?

@bungle bungle force-pushed the fix/charset-default branch from 0f045c2 to 8efa2d6 Compare January 16, 2023 19:30
… configurable

### Summary

`charset` directive that was previously hard coded in template with a value of `UTF-8`
was removed completely with this PR:
#9905

Previous discussion from 3 years ago pointed that this is breaking change (not a fix):
#5045

So here is another fix to make the directive still default to `UTF-8`. which is a quite
fine default, but allow users to configure it. E.g.:

```
KONG_NGINX_HTTP_CHARSET=off kong start
```
@bungle bungle force-pushed the fix/charset-default branch from 8efa2d6 to f8fe021 Compare January 16, 2023 19:31
@bungle bungle merged commit 1e88da7 into master Jan 17, 2023
@bungle bungle deleted the fix/charset-default branch January 17, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog core/templates pr/discussion This PR is being debated. Probably just a few details. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants