Skip to content

Commit 8d8192b

Browse files
vbstevenTylerBrock
authored andcommitted
Add Content-Length header to HTTP response in FilesRouter (#2408)
1 parent 5865d59 commit 8d8192b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Routers/FilesRouter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class FilesRouter {
4040
res.status(200);
4141
var contentType = mime.lookup(filename);
4242
res.set('Content-Type', contentType);
43+
res.set('Content-Length', data.length);
4344
res.end(data);
4445
}).catch((err) => {
4546
res.status(404);

0 commit comments

Comments
 (0)