Skip to content
Snippets Groups Projects
Commit 92eec217 authored by dakkar's avatar dakkar
Browse files

return 206 for every ranged response - fixes #494

parent bb7b4a8e
No related branches found
No related tags found
2 merge requests!501Release 2024.3.3,!490handle ranged requests for proxied files - fixes #494
......@@ -192,6 +192,7 @@ export class FileServerService {
reply.header('Content-Range', `bytes ${start}-${end}/${file.file.size}`);
reply.header('Accept-Ranges', 'bytes');
reply.header('Content-Length', chunksize);
reply.code(206);
} else {
image = {
data: fs.createReadStream(file.path),
......@@ -431,6 +432,7 @@ export class FileServerService {
reply.header('Content-Range', `bytes ${start}-${end}/${file.file.size}`);
reply.header('Accept-Ranges', 'bytes');
reply.header('Content-Length', chunksize);
reply.code(206);
} else {
image = {
data: fs.createReadStream(file.path),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment