Yes - this is a bug. I'm not sure immediately what the problem is.
I'll get back to you soon.
Thanks for the report.
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
The bug persists in 0.2.3. Any word? I'd really like not to have to
move to Event Machine or Twisted just because of HTTP encoder trouble.
Just having some visibility into whether/when this might get looked at
more deeply would help us plan.
res.write(data, "binary");How about:
res.write(data);
I've done some debugging of this - it does appear to be a bug in the parser.
Thanks.
The commit that fixed it was 7e24a05cba2373c0ab1f0629366b664a593f357f.
I backported it to v0.2 in c42a5cc8eb6d489408c4f86995fdbdc27943fe96.
I'll release v0.2.5 in a few days.