We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
user_agent.browser is reported as opera and user_agent.version as 60 when browsing using Opera 60 in MacOs 10.13.5.
user_agent.browser
opera
user_agent.version
60
@web.route('/test') def test(): browser = request.user_agent.browser version = request.user_agent.version and int(request.user_agent.version.split('.')[0]) platform = request.user_agent.platform uas = request.user_agent.string jsonify(dict(browser=browser, version=version, platform=platform, uas=uas))
When using Opera the report is as follows (note the 'OPR/60'):
{ "browser": "chrome", "platform": "macos", "uas": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 OPR/60.0.3255.95", "version": 73 }
When using Chrome the report is:
{ "browser": "chrome", "platform": "macos", "uas": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36", "version": 74 }
The text was updated successfully, but these errors were encountered:
Detect opera as browser in user_agent
a114f4c
Now, we'll recognize `OPR` as "Opera" in a user agent string. Fixes pallets#1556
29ffda8
Successfully merging a pull request may close this issue.
Expected Behavior
user_agent.browser
is reported asopera
anduser_agent.version
as60
when browsing using Opera 60 in MacOs 10.13.5.Actual Behavior
When using Opera the report is as follows (note the 'OPR/60'):
When using Chrome the report is:
Environment
The text was updated successfully, but these errors were encountered: