[fix] Remove special case handling of 304 responses since it was fixed in 182dcd3. Fixes #322.

This commit is contained in:
indexzero 2013-03-09 01:10:02 -05:00
parent ecb547223f
commit 28a3b0a6f0

View File

@ -287,13 +287,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
});
res.writeHead(response.statusCode);
// If `response.statusCode === 304`: No 'data' event and no 'end'
if (response.statusCode === 304) {
try { res.end() }
catch (ex) { console.error("res.end error: %s", ex.message) }
return;
}
function ondata(chunk) {
if (res.writable) {
if (false === res.write(chunk) && response.pause) {