i wish to set the same header as the following one but with fastify framework
// working example with express
const head = {
'Content-Range': `bytes ${start}-${end}/${fileSize}`,
'Accept-Ranges': 'bytes',
'Content-Length': chunksize,
'Content-Type': 'video/mp4',
}
Right now i am doing that (with fastify), but it does not work(or look like)
reply
.header('Content-Type','video/mp4')
.header('Content-Lenght', chunksize)
.header('Accept-Range', 'bytes')
.header('Content-Range', `bytes ${start}-${end}/${size}`)
.send(str)
I did not find any example of multiple header with fastify. The header's contents does not matter, i just need to know how to set it up correctly. Thank you