def set_response_length(self, length, renderer_context):
        try:
            renderer_context['response']['Content-Length'] = length
        except (__HOLE__, TypeError):
            pass
dataset/ETHPy150Open bkg/django-spillway/spillway/renderers/gdal.py/BaseGDALRenderer.set_response_length