Skip to content

Commit

Permalink
refactor: Remove Commented Code in get.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CxRes committed Oct 13, 2024
1 parent b0e7eb0 commit 6a287e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/handlers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a287e4

Please sign in to comment.