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

Windows 11 Showing as Windows 10 #70

Open
DanielKeeley opened this issue Dec 16, 2022 · 1 comment
Open

Windows 11 Showing as Windows 10 #70

DanielKeeley opened this issue Dec 16, 2022 · 1 comment

Comments

@DanielKeeley
Copy link

DanielKeeley commented Dec 16, 2022

If you run this on a windows 11 os, the nuget will say it is windows 10.
image

image

image

@siewers
Copy link

siewers commented Feb 9, 2023

Windows 11 will not be reported through User-Agent strings.
You will need to switch to using User-Agent Client Hints as described here: https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

Basically, you need to send some response headers for the initial request, to ask the browser to start sending the client hints you need. After that, you can read those headers from the requests onward.

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

No branches or pull requests

2 participants