mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update express-useragent-tests.ts
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user