JS: recognize Express header access with dynamic name

This commit is contained in:
Asger F
2018-09-26 08:22:21 +01:00
parent e78a4e9f10
commit a47b1dc774
3 changed files with 6 additions and 4 deletions

View File

@@ -47,4 +47,5 @@ app.post('/headers', function(req, res) {
req.headers.baz;
req.host;
req.hostname;
req.headers[config.headerName];
});