'Get the object contents.'

def get(self, request, container, object_name):

    obj = api.swift.swift_get_object(request, container, object_name)
    filename = object_name.rsplit(api.swift.FOLDER_DELIMITER)[(-1)]
    if ((not os.path.splitext(obj.name)[1]) and obj.orig_name):
        (name, ext) = os.path.splitext(obj.orig_name)
        filename = ('%s%s' % (filename, ext))
    response = StreamingHttpResponse(obj.data)
    safe = filename.replace(',', '')
    if six.PY2:
        safe = safe.encode('utf-8')
    response['Content-Disposition'] = ('attachment;    filename="%s"' % safe)
    response['Content-Type'] = 'application/octet-stream'
    response['Content-Length'] = obj.bytes
    return response
