From 6a287e482db587c252a15a0144b0f28d9d2d75ee Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Sun, 13 Oct 2024 23:50:25 +0530 Subject: [PATCH] refactor: Remove Commented Code in `get.js` --- lib/handlers/get.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/handlers/get.js b/lib/handlers/get.js index 3e11b3e5..3bc7fbfb 100644 --- a/lib/handlers/get.js +++ b/lib/handlers/get.js @@ -114,17 +114,6 @@ async function handler (req, res, next) { } // If request accepts the content-type we found - // if (stream && negotiator.mediaType([contentType])) { - // res.setHeader('Content-Type', contentType) - // if (contentRange) { - // const headers = { 'Content-Range': contentRange, 'Accept-Ranges': 'bytes', 'Content-Length': chunksize } - // res.writeHead(206, headers) - // return stream.pipe(res) - // } else { - // return stream.pipe(res) - // } - // } - if (stream && negotiator.mediaType([contentType])) { let headers = { 'Content-Type': contentType