From 554eccc14a6dbaed05503b54b74ed974bf74c607 Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Sat, 9 Mar 2013 21:29:06 +0100 Subject: [PATCH] fixed request missing current prefix causing wrongly handled exceptions. --- gluon/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/tools.py b/gluon/tools.py index 2156d425..3945d854 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -4405,9 +4405,9 @@ class Service(object): + request = current.request + response = current.response if not data: - request = current.request - response = current.response response.headers['Content-Type'] = 'application/json; charset=utf-8' try: data = json_parser.loads(request.body.read())