Wizcorp / node-pivotal

NodeJS API library for PivotalTracker
44 stars 20 forks source link

fixed content-length in case data contain multi-byte characters #28

Closed fpt closed 10 years ago

fpt commented 10 years ago

Calling addStory with data containing multi-byte characters (e.g. Japanese) fails in HTTP 400 status. String.length is not preferable because it does not match encoded length in bytes in those cases.

Please refer to this question for more information. http://stackoverflow.com/questions/9864662/how-to-get-the-string-length-in-bytes-in-nodejs

stelcheck commented 10 years ago

Thank you for your contribution!