'Process response'

def process_response(self, request, response):

    if ('text/html' in response['Content-Type']):
        response.content = short(response.content)
    if (settings.HARDTREE_MINIFY_JSON and (settings.HARDTREE_RESPONSE_FORMATS['json'] in response['Content-Type'])):
        response.content = _minify_json(response.content)
    return response
