From 58f3e758cd6d40e1086b3eaad46c0533039e0056 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Tue, 4 Oct 2011 21:59:32 -0700 Subject: [PATCH] updated booth to escape out some variables, made sure election JSON is returned with right mime type --- helios/view_utils.py | 2 +- heliosbooth | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helios/view_utils.py b/helios/view_utils.py index f251054..1383b48 100644 --- a/helios/view_utils.py +++ b/helios/view_utils.py @@ -74,7 +74,7 @@ def render_template_raw(request, template_name, vars={}): def render_json(json_txt): - return HttpResponse(json_txt) + return HttpResponse(json_txt, "application/json") # decorator def json(func): diff --git a/heliosbooth b/heliosbooth index 81522f7..11a1a2f 160000 --- a/heliosbooth +++ b/heliosbooth @@ -1 +1 @@ -Subproject commit 81522f751f0eb3412ed3b3d1bad871ed4715554e +Subproject commit 11a1a2fc0c4db87cfd1fa3cf566c0fbffd63cb7b -- GitLab