Challenge: Request Header Parser Microservice

What is your hint or solution suggestion?

app.get("/api/whoami", function (req, res) {
  res.json({
    ipaddress: req.ip,
    language: req.headers['accept-language'],
    software: req.headers['user-agent']
  });
});

Challenge: Request Header Parser Microservice

Link to the challenge:

1 Like