def _reject_te(headers):
    for header in headers:
        if header[0] == b'te':
            if header[1].lower().strip() != b'trailers':
                raise ProtocolError(
                    "Invalid value for Transfer-Encoding header: %s" %
                    header[1]
                )

        yield header
Raises a ProtocolError if the TE header is present in a header block and
dataset/ETHPy150Open python-hyper/hyper-h2/h2/utilities.py/_reject_te