Content-Length is supposed to be bytes, not chars #4

Merged
enriclluelles merged 1 commits from correct_content_length into master 2012-01-23 18:56:58 +00:00
enriclluelles commented 2012-01-23 18:46:26 +00:00 (Migrated from github.com)

Using length when there's UTF-8 chars in the response makes the browser to cut the page, because those chars have a length of 1 char but a bytesize of 2 bytes.

BTW Thank you for your work. This gem is been really helpful to me!

Using length when there's UTF-8 chars in the response makes the browser to cut the page, because those chars have a length of 1 char but a bytesize of 2 bytes. BTW Thank you for your work. This gem is been really helpful to me!
johnbintz commented 2012-01-23 18:57:13 +00:00 (Migrated from github.com)

Thanks for the code! Glad it's been helpful. :)

Thanks for the code! Glad it's been helpful. :)
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/rack-livereload#4
No description provided.