def get_request_header(headers):
    """
    Get all headers that should be included in the pre-signed S3 URL. We do not add headers that will be
     applied after transformation, such as Range.
    :param headers: Headers from the GetObject request
    :return: Headers to be sent with pre-signed-url
    """
    new_headers = dict()
    headers_to_be_presigned = ['x-amz-checksum-mode', 'x-amz-request-payer', 'x-amz-expected-bucket-owner', 'If-Match',
                               'If-Modified-Since', 'If-None-Match', 'If-Unmodified-Since']
    for key, value in headers.items():
        if key in headers_to_be_presigned:
            new_headers[key] = value
    return new_headers