jayli-server
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -469,20 +469,9 @@ var | ||
headerFields['Content-Type'] = headerFields['Content-Type'].replace(/charset=(.+)$/i, 'charset=' + encoding); | ||
var callbackFn = function (chunk) { | ||
if(encoding != 'binary') { | ||
chunk = teardownChunk(chunk, encoding); | ||
} | ||
res.writeHead(statCode, headerFields); | ||
chunkParser(chunk, function (chunk) { | ||
chunk = teardownChunk(chunk, encoding); | ||
headerFields['Content-Length'] = chunk.length; | ||
res.writeHead(statCode, headerFields); | ||
res.write(chunk); | ||
res.end(); | ||
}; | ||
if (encoding == 'binary') { | ||
callbackFn(chunk); | ||
} else { | ||
chunkParser(chunk, callbackFn); | ||
} | ||
}); | ||
} |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "A node.js module for delivering static files,width ssi,mock and php", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
238573
2761