Is that code valid HTTP/1.1?
var fs = require(\'fs\')
var http = require(\'http\')
var buf=function(res,fd,i,s,buffer){
if(i+buffer.length
Since Node.js implicitly sets 'Transfer-Encoding: chunked', all I needed to send in headers was the content type with charset like:
'Content-Type': 'text/html; charset=UTF-8'
Initially it was:
'Content-Type': 'text/html'
... which didn't work. Specifying "charset=UTF-8" immediately forced Chrome to render chunked responses.