Skip to content

Commit e0d03cc

Browse files
committed
Update express-useragent-tests.ts
1 parent 81b33d3 commit e0d03cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

express-useragent/express-useragent-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ app.get("/", function(req, res) {
2222
});
2323

2424
app.get("/parse", function(req, res) {
25-
const source = req.headers['user-agent'],
26-
const ua = useragent.parse(source);
25+
var source = req.headers['user-agent'],
26+
ua = useragent.parse(source);
2727
res.writeHead(200, {'Content-Type': 'text/plain'});
2828
res.end(JSON.stringify(ua));
2929
});

0 commit comments

Comments
 (0)