Esempio n. 1
0
    def test_stripping_related_headers(self):
        headers = [
            ('one', 'two'), ('three', 'four'), ('five', 'six'),
            ('connection', 'close, three, five')
        ]
        stripped = [('one', 'two')]

        assert h2_safe_headers(headers) == stripped
Esempio n. 2
0
    def test_stripping_related_headers(self):
        headers = [
            ('one', 'two'), ('three', 'four'), ('five', 'six'),
            ('connection', 'close, three, five')
        ]
        stripped = [('one', 'two')]

        assert h2_safe_headers(headers) == stripped
Esempio n. 3
0
    def test_stripping_connection_header(self):
        headers = [('one', 'two'), ('connection', 'close')]
        stripped = [('one', 'two')]

        assert h2_safe_headers(headers) == stripped
Esempio n. 4
0
    def test_stripping_connection_header(self):
        headers = [('one', 'two'), ('connection', 'close')]
        stripped = [('one', 'two')]

        assert h2_safe_headers(headers) == stripped