From 719ef968c41e86810a3d32d7ded726495427e37f Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Mon, 7 Jul 2014 12:27:56 +0200 Subject: [PATCH] fixed manifold proxy should return httpresponce object --- manifoldapi/manifoldproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifoldapi/manifoldproxy.py b/manifoldapi/manifoldproxy.py index c16ffdee..99959aee 100644 --- a/manifoldapi/manifoldproxy.py +++ b/manifoldapi/manifoldproxy.py @@ -40,7 +40,7 @@ with the query passed using POST""" # format_out: how to serve the results if format != 'json': print "manifoldproxy.proxy: unexpected format %s -- exiting"%format - return + return HttpResponse ({"ret":0}, mimetype="application/json") try: # translate incoming POST request into a query object if debug: print 'manifoldproxy.proxy: request.POST',request.POST @@ -84,6 +84,7 @@ with the query passed using POST""" print "** PROXY ERROR **",e import traceback traceback.print_exc() + return HttpResponse ({"ret":0}, mimetype="application/json") #################### # see CSRF_FAILURE_VIEW in settings.py -- 2.43.0