trry cotrect mime typepb V00.04
authorymh <ymh.work@gmail.com>
Thu, 10 Jun 2010 19:58:34 +0200
changeset 24 c8d5e809ffdb
parent 23 1c0e262c4ab5
child 25 9508e39672bb
trry cotrect mime typepb
web/eulalie/__init__.py
web/ldt/ldt_utils/views.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)))
 
--- 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'