Commit 8b1bebac authored by Leon Li's avatar Leon Li

Update getCookie.js

parent 96c6b5cd
......@@ -16,9 +16,9 @@ try {
throw "The cookie file does not exist.";
}
var content = fs.readFile(cookie_path);
result.setData(JSON.parse(content));
result.setData(content);
RES.body(result.toJson());
} catch (err) {
result.setErrText(CONFIG.tr(_.toString(err)));
RES.body(result.toJson());
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment