Update express-useragent-tests.ts

This commit is contained in:
Isman Usoh
2016-03-26 08:55:23 +07:00
parent 81b33d3367
commit e0d03ccc2e
+2 -2
View File
@@ -22,8 +22,8 @@ app.get("/", function(req, res) {
});
app.get("/parse", function(req, res) {
const source = req.headers['user-agent'],
const ua = useragent.parse(source);
var source = req.headers['user-agent'],
ua = useragent.parse(source);
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end(JSON.stringify(ua));
});