def _is_blacklisted_response_header()

in aws_jupyter_proxy/awsproxy.py [0:0]


    def _is_blacklisted_response_header(name: str, value: str) -> bool:
        if name == "Transfer-Encoding" and value == "chunked":
            # Responses are no longer "chunked" when we send them to the browser.
            # If we retain this header, then the browser will wait forever for more chunks.
            return True
        elif name == "Content-Length":
            # Tornado will auto-set the Content-Length
            return True
        else:
            return False