Skip to content

Commit 28a3b0a

Browse files
committed
[fix] Remove special case handling of 304 responses since it was fixed in 182dcd3. Fixes #322.
1 parent ecb5472 commit 28a3b0a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: lib/node-http-proxy/http-proxy.js

-7
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
287287
});
288288
res.writeHead(response.statusCode);
289289

290-
// If `response.statusCode === 304`: No 'data' event and no 'end'
291-
if (response.statusCode === 304) {
292-
try { res.end() }
293-
catch (ex) { console.error("res.end error: %s", ex.message) }
294-
return;
295-
}
296-
297290
function ondata(chunk) {
298291
if (res.writable) {
299292
if (false === res.write(chunk) && response.pause) {

0 commit comments

Comments
 (0)