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: send utf-8 charset as header #18

Merged
merged 1 commit into from
Jan 3, 2019
Merged

fix: send utf-8 charset as header #18

merged 1 commit into from
Jan 3, 2019

Conversation

zzzzbw
Copy link
Contributor

@zzzzbw zzzzbw commented Jan 3, 2019

Fix #8

lib/module.js Outdated
}
return lookup.hasOwnProperty(type) ? lookup[type] : 'application/xml'
return (lookup.hasOwnProperty(type) ? lookup[type] : 'application/xml;') + ' charset=UTF-8'
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a semicolon here instead of adding that to the lines 59-61 ☺️?

Suggested change
return (lookup.hasOwnProperty(type) ? lookup[type] : 'application/xml;') + ' charset=UTF-8'
return (lookup.hasOwnProperty(type) ? lookup[type] : 'application/xml') + '; charset=UTF-8'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, your code is more pretty

@manniL manniL self-requested a review January 3, 2019 13:33
@manniL manniL changed the title Fix encoding invalid in browser fix: send utf-8 charset as header Jan 3, 2019
@manniL manniL merged commit a412ee4 into nuxt-community:master Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants