Skip to content

Bad headers in jsonp-polling, xhr-polling #58

Closed
@SlNPacifist

Description

@SlNPacifist

jsonp-polling and xhr-polling require encoding parameter in Content-type header (some browsers decode data got with this methods with page's encoding)
Content-length gets corrupted if non-english symbols are sent because it requires number of bytes but string.length returns number of symbols in string.
This issue is fixed in http://github.com/SlNPacifist/Socket.IO-node branch
Buffer.byteLength is used, but Buffer became global object only in node.js v 0.1.103, so after merging with branch that will become the least version needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions