Commits

Andriy Kornatskyy committed 201ad5f

Added default CONTENT_TYPE to bootstap options.

  • Participants
  • Parent commits 715eda7

Comments (0)

Files changed (1)

File src/wheezy/web/middleware/__init__.py

         if 'ticket' not in options:
             options['ticket'] = Ticket()
 
+        options.setdefault('ENCODING', 'UTF-8')
+        options.setdefault('CONTENT_TYPE', 'text/html; charset=' +
+                options['ENCODING'])
         options.setdefault('AUTH_COOKIE', '_a')
         options.setdefault('AUTH_COOKIE_DOMAIN', None)
         options.setdefault('AUTH_COOKIE_PATH', '')