mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Update express-useragent-tests.ts
This commit is contained in:
1 parent
81b33d3367
commit
e0d03ccc2e
1 file changed
+2
-2
@@ -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