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

method res.endJSON breaks utf-8 encoded Data response #1

Open
alab1001101 opened this issue Jun 25, 2011 · 0 comments
Open

method res.endJSON breaks utf-8 encoded Data response #1

alab1001101 opened this issue Jun 25, 2011 · 0 comments

Comments

@alab1001101
Copy link

in res.endJSON line 14 should read
res.setHeader 'Content-Length', Buffer.byteLength body
instead of
res.setHeader 'Content-Length', Text body.length

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

No branches or pull requests

1 participant