Skip to content

Commit e3e234f

Browse files
author
Martin Martinez Rivera
committed
Minor fix in get.js and removed obsolete comments.
1 parent e3593da commit e3e234f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎handlers/get.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function get(req, res, includeBody) {
9696

9797
// Consider acl and meta files text/turtle
9898
if (path.extname(filename) === options.suffixAcl ||
99-
path.basename(filename) === options.suffixAcl ||
99+
path.basename(filename) === turtleExtension ||
100100
path.basename(filename) === metaExtension) {
101101
contentType = 'text/turtle';
102102
}
@@ -136,7 +136,6 @@ function get(req, res, includeBody) {
136136
match,
137137
{ encoding: "utf8" });
138138

139-
//TODO integrate ACL
140139
if (S(match).endsWith(".ttl") && aclAllow(match)) {
141140
$rdf.parse(
142141
fileData,
@@ -203,7 +202,6 @@ function get(req, res, includeBody) {
203202
return res.status(500).send(err);
204203
}
205204

206-
//TODO rdflib callbacks
207205
$rdf.serialize(
208206
undefined,
209207
resourceGraph,

0 commit comments

Comments
 (0)