<s> from __future__ import absolute_import <EOL> from django . http import HttpResponse <EOL> from . base import ServerBase <EOL> class ApacheXSendfileServer ( ServerBase ) : <EOL> def serve ( self , request , file_obj , ** kwargs ) : <EOL> response = HttpResponse ( ) <EOL> response [ '<STR_LIT>' ] = file_obj . path <EOL> response [ '<STR_LIT:Content-Type>' ] = self . get_mimetype ( file_obj . path ) <EOL> self . default_headers ( request = request , response = response , file_obj = file_obj , ** kwargs ) <EOL> return response </s>
