--- a/web/ldt/ldt_utils/views.py Thu Jun 10 19:58:55 2010 +0200
+++ b/web/ldt/ldt_utils/views.py Thu Jun 10 20:49:13 2010 +0200
@@ -203,10 +203,11 @@
def project_json(request, project):
- mimetype = request.REQUEST.get("mimetype").encode("utf-8")
+ mimetype = request.REQUEST.get("mimetype")
if mimetype is None:
mimetype = "application/json; charset=utf-8"
-
+ else:
+ mimetype.encode("utf-8")
resp = HttpResponse(mimetype=mimetype)
resp['Cache-Control']='no-cache, must-revalidate'
resp['Pragma']='no-cache'