Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit ff09efe

Browse files
committed
Test that we ignore the Connection header.
1 parent 364e233 commit ff09efe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_hyper.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,20 @@ def test_putheader_puts_headers(self):
10111011
('name', 'value'),
10121012
]
10131013

1014+
def test_putheader_ignores_connection(self):
1015+
c = HTTP20Connection("www.google.com")
1016+
1017+
c.putrequest('GET', '/')
1018+
c.putheader('Connection', 'keep-alive')
1019+
s = c.recent_stream
1020+
1021+
assert s.headers == [
1022+
(':method', 'GET'),
1023+
(':scheme', 'https'),
1024+
(':authority', 'www.google.com'),
1025+
(':path', '/'),
1026+
]
1027+
10141028
def test_endheaders_sends_data(self):
10151029
frames = []
10161030

0 commit comments

Comments
 (0)