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

Commit fb0db50

Browse files
committed
END_SEGMENT no longer exists in h2-14.
1 parent 8542efe commit fb0db50

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hyper/http20/frame.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ class DataFrame(Padding, Frame):
154154
"""
155155
defined_flags = [
156156
('END_STREAM', 0x01),
157-
('END_SEGMENT', 0x02),
158157
('PADDED', 0x08),
159158
]
160159

@@ -414,7 +413,6 @@ class HeadersFrame(Padding, Priority, Frame):
414413

415414
defined_flags = [
416415
('END_STREAM', 0x01),
417-
('END_SEGMENT', 0x02),
418416
('END_HEADERS', 0x04),
419417
('PADDED', 0x08),
420418
('PRIORITY', 0x20),

test/test_hyper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_data_frame_has_correct_flags(self):
5959
f = DataFrame(1)
6060
flags = f.parse_flags(0xFF)
6161
assert flags == set([
62-
'END_STREAM', 'END_SEGMENT', 'PADDED'
62+
'END_STREAM', 'PADDED'
6363
])
6464

6565
def test_data_frame_serializes_properly(self):
@@ -372,7 +372,7 @@ def test_headers_frame_flags(self):
372372
f = HeadersFrame(1)
373373
flags = f.parse_flags(0xFF)
374374

375-
assert flags == set(['END_STREAM', 'END_SEGMENT', 'END_HEADERS',
375+
assert flags == set(['END_STREAM', 'END_HEADERS',
376376
'PADDED', 'PRIORITY'])
377377

378378
def test_headers_frame_serializes_properly(self):

0 commit comments

Comments
 (0)