Skip to content

Commit 5719e48

Browse files
author
nicola
committed
fixing sending the file
1 parent 5affce2 commit 5719e48

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎lib/handlers/get.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ function get(req, res, next) {
7373

7474
// if data is not text/turtle, just send it
7575
if (contentType !== 'text/turtle') {
76-
res
76+
return res
7777
.status(200)
78-
.send(data);
79-
return next();
78+
.sendFile(path.resolve(filename));
8079
}
8180
}
8281

0 commit comments

Comments
 (0)