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