fixed issue 1755:IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore
This commit is contained in:
@@ -403,6 +403,9 @@ def detect(agent):
|
||||
break
|
||||
except Exception, ex:
|
||||
result['exception'] = ex
|
||||
# hack to address https://code.google.com/p/web2py/issues/detail?id=1755
|
||||
if not 'browser' in result:
|
||||
result['browser'] = Storage({'name':'IE11'})
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user