Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device detection for bots #52

Closed
wants to merge 1 commit into from

Conversation

thomas-schwebel
Copy link

Hi,

This is a proposal for fixing #51
Let me know if you have any question.

Cheers,
Thomas

@@ -54,6 +54,9 @@ func (u *UserAgent) evalDevice(ua string) {
case u.OS.Name == OSLinux: // linux goes last since it's in so many other device types (tvs, wearables, android-based stuff)
u.DeviceType = DeviceComputer

case u.OS.Name == OSBot: // fallback for bots
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if unknown device detection for Bots should be still set as DeviceComputer as before or changed for DeviceUnknown?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant