From d7862d3b775b430235a911eb839dd2dad5273d94 Mon Sep 17 00:00:00 2001 From: cheskel Date: Sun, 10 Apr 2022 02:17:46 +0300 Subject: [PATCH] fix ERR_STREAM_WRITE_AFTER_END --- lib/etag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/etag.js b/lib/etag.js index b307bef..6416bb2 100644 --- a/lib/etag.js +++ b/lib/etag.js @@ -4,7 +4,7 @@ var ETag = { if (req.headers['if-none-match'] === etag) { res.statusCode = 304; res.end(); - return; + return true; } res.setHeader('ETag', etag); }