X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifoldapi%2Fmanifoldproxy.py;h=99959aee657c6377ad6ebc44cb80835a01fb65a7;hb=64875671facb5f00ccd4cced2620a3fd23d09b07;hp=c16ffdee6590f06968c82ca106659df3a04e0708;hpb=8cd242571082562afa089d7da255c8234055f685;p=unfold.git 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