Closed osuushi closed 8 years ago
+1
+1
Hi. I came here as I had a struggle with requestify and international characters / accent. Sending : {interest:"Honoré De Balzac"} made my server reject HTTP400 the call (Invalid request payload JSON Format).
Changing line 252 of the file lib\request.js by :
return Buffer.byteLength(this.getBody());
fixed the problem. After a little search I found that it was fixed in ... 2013 but not published.
Why not ?
Hey @Alex-Werner ! I know it's a bit late but better late than never, version 0.2.0 will be published soon !
@ran-y That's a freaking good things to hear :D
Version 0.2.0 was released! feel free to update (-: Closing
Because
Request.prototype.getContentLength
uses string.length, requestify breaks on unicode bodies. It looks like this is fixed in the 0.2.0 branch, which is not published to npm. Any timetable on that?