fixed issue 1755:IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

This commit is contained in:
Massimo
2013-10-31 10:19:07 -05:00
parent 25f54356d4
commit bb4f3d6e1a
6 changed files with 28 additions and 21 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ def detect(agent):
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'})
result['browser'] = {'name':'IE11'}
return result