Skip to content

Commit 6a287e4

Browse files
committed
refactor: Remove Commented Code in get.js
1 parent b0e7eb0 commit 6a287e4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/handlers/get.js

-11
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ async function handler (req, res, next) {
114114
}
115115

116116
// If request accepts the content-type we found
117-
// if (stream && negotiator.mediaType([contentType])) {
118-
// res.setHeader('Content-Type', contentType)
119-
// if (contentRange) {
120-
// const headers = { 'Content-Range': contentRange, 'Accept-Ranges': 'bytes', 'Content-Length': chunksize }
121-
// res.writeHead(206, headers)
122-
// return stream.pipe(res)
123-
// } else {
124-
// return stream.pipe(res)
125-
// }
126-
// }
127-
128117
if (stream && negotiator.mediaType([contentType])) {
129118
let headers = {
130119
'Content-Type': contentType

0 commit comments

Comments
 (0)