When generating a pre-signed URL for download and specifying response-content-disposition to set a target filename, the actual download does not contain the Content-Disposition header therefore the download file does not have the requested filename.

I have confirmed that this works corrected in S3 itself.

I'd be happy to explore a fix if anyone can point me in the right direction/location.
result = {
        'ServerSideEncryptionConfiguration': {}
    }
    body = xmltodict.unparse(result)
    return requests_response(body)
def set_lifecycle(bucket_name, lifecycle):
    
    if isinstance(to_str(lifecycle), six.string_types):
        lifecycle = xmltodict.parse(lifecycle)
    BUCKET_LIFECYCLE[bucket_name] = lifecycle
    response = Response()
    response.status_code = 200
    return response
def strip_chunk_signatures(data):