# HG changeset patch # User ymh # Date 1276192714 -7200 # Node ID c8d5e809ffdbec8be639e1476a5cd14a56606f75 # Parent 1c0e262c4ab5087db73260ce309060f9125ff02d trry cotrect mime typepb diff -r 1c0e262c4ab5 -r c8d5e809ffdb web/eulalie/__init__.py --- a/web/eulalie/__init__.py Thu Jun 10 19:19:41 2010 +0200 +++ b/web/eulalie/__init__.py Thu Jun 10 19:58:34 2010 +0200 @@ -1,4 +1,4 @@ -VERSION = (0,3) +VERSION = (0,4) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION))) diff -r 1c0e262c4ab5 -r c8d5e809ffdb web/ldt/ldt_utils/views.py --- a/web/ldt/ldt_utils/views.py Thu Jun 10 19:19:41 2010 +0200 +++ b/web/ldt/ldt_utils/views.py Thu Jun 10 19:58:34 2010 +0200 @@ -203,9 +203,9 @@ def project_json(request, project): - mimetype = request.REQUEST.get("mimetype") + mimetype = request.REQUEST.get("mimetype").encode("utf-8") if mimetype is None: - mimetype = u"application/json; charset=utf-8" + mimetype = "application/json; charset=utf-8" resp = HttpResponse(mimetype=mimetype) resp['Cache-Control']='no-cache, must-revalidate'