Flask - headers are not converted to unicode?
I'm developping a small web service in python using: Flask (v. 0.8) storm ORM (v. 0.19) Apache with mod_wsgi I have a custom HTTP header, Unison-UUID which I'm using at some point to retrieve information in my database. here's the (slightly rewritten for simplicity) snippet that I'm having trouble with: uuid = flask.request.headers['Unison-UUID'] store = storm.locals.Store(my_database) user = store.get(models.User, uuid) The class User is more or less like this: class User(Storm): uuid = Unicode(primary=True) # Other columns.... The code above fails in the following way: File "/Users/lum