Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ var createServer = function (e, opts) {
response.statusCode = 206
response.setHeader('Content-Length', range.end - range.start + 1)
response.setHeader('Content-Range', 'bytes ' + range.start + '-' + range.end + '/' + file.length)
response.setHeader('transferMode.dlna.org', 'Streaming')
response.setHeader('contentFeatures.dlna.org', 'DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's already done above fyi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups sorry reviving an old thread mb

if (request.method === 'HEAD') return response.end()
pump(file.createReadStream(range), response)
})
Expand Down