forked from svrjs/svrjs
Convert a "bytes */" + filelen string to a template string
This commit is contained in:
parent
189fbdc617
commit
30498263fc
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ module.exports = (req, res, logFacilities, config, next) => {
|
||||||
try {
|
try {
|
||||||
let rhd = config.getCustomHeaders();
|
let rhd = config.getCustomHeaders();
|
||||||
rhd["Accept-Ranges"] = "bytes";
|
rhd["Accept-Ranges"] = "bytes";
|
||||||
rhd["Content-Range"] = "bytes */" + filelen;
|
rhd["Content-Range"] = `bytes */${filelen}`;
|
||||||
const regexmatch = req.headers["range"].match(
|
const regexmatch = req.headers["range"].match(
|
||||||
/bytes=([0-9]*)-([0-9]*)/,
|
/bytes=([0-9]*)-([0-9]*)/,
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue