Open benpptung opened 5 years ago
I've come across this issue as well. You'd need to either check the source value for undefined before calling the parse method, or modify the latter for handling undefined source to return, say, DefaultAgent object.
Recently, I see some visitors with no useragent found in req.useragent.source, I'm using express-useragent 1.0.12, so I'm wondering what is this? Kind of bot? Or something else?
Thank you for your attention :)