Merge "Add a param req_succeeded for falcon: process_response"
This commit is contained in:
commit
25e80f6568
|
@ -138,7 +138,7 @@ class RequireJSON(HookableMiddlewareMixin, object):
|
|||
|
||||
|
||||
class JSONTranslator(HookableMiddlewareMixin, object):
|
||||
def process_response(self, req, resp, resource):
|
||||
def process_response(self, req, resp, resource, req_succeeded=True):
|
||||
if not hasattr(resp, 'body'):
|
||||
return
|
||||
if isinstance(resp.data, dict):
|
||||
|
|
Loading…
Reference in New Issue