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