Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/django-downloadview-1.6/django_downloadview/nginx/response.py   django-downloadview(Download)
from django_downloadview.response import (ProxiedDownloadResponse,
                                          content_disposition)
from django_downloadview.utils import content_type_to_charset, url_basename
 
 
            self['Content-Disposition'] = content_disposition(self.basename)
        self['X-Accel-Redirect'] = redirect_url
        self['X-Accel-Charset'] = content_type_to_charset(content_type)
        if with_buffering is not None:
            self['X-Accel-Buffering'] = with_buffering and 'yes' or 'no'

src/d/j/django-downloadview-HEAD/django_downloadview/nginx/response.py   django-downloadview(Download)
from django_downloadview.response import (ProxiedDownloadResponse,
                                          content_disposition)
from django_downloadview.utils import content_type_to_charset, url_basename
 
 
            self['Content-Disposition'] = content_disposition(self.basename)
        self['X-Accel-Redirect'] = redirect_url
        self['X-Accel-Charset'] = content_type_to_charset(content_type)
        if with_buffering is not None:
            self['X-Accel-Buffering'] = with_buffering and 'yes' or 'no'