Commits

Alvin Mites committed b085107

Updated device checking based on conversation from Stephen McDonald

Comments (0)

Files changed (1)

mezzanine/utils/device.py

     try:
         # If a device was set via cookie, match available devices.
         for (device, _) in settings.DEVICE_USER_AGENTS:
-            if device == request.COOKIES["mezzanine-device"].lower():
+            if device == request.COOKIES["mezzanine-device"]
                 return device
     except KeyError:
         # If a device wasn't set via cookie, match user agent.