def serve_file(request, file, save_as, content_type, **kwargs):
    """Lets the web server serve the file using the X-Sendfile extension"""
    response = HttpResponse(content_type=content_type)
    response['X-Sendfile'] = file.path
    if save_as:
        response['Content-Disposition'] = smart_str(save_as % u'attachment; filename=%s')
    if file.size is not None:
        response['Content-Length'] = file.size
    return response
dataset/ETHPy150Open adieu/django-filetransfers/filetransfers/backends/xsendfile.py/serve_file/swapped operands of `%`