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

Commit e412120

Browse files
committed
Clean unnecessary complexity
1 parent 0733c59 commit e412120

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hyper/http20/stream.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,8 @@ def open(self, end):
272272
The `end` flag controls whether this will be the end of the stream, or
273273
whether data will follow.
274274
"""
275-
headers = list(self.headers.items())
276-
277275
# Strip any headers invalid in H2.
278-
headers = h2_safe_headers(headers)
276+
headers = h2_safe_headers(self.headers)
279277

280278
# Encode the headers.
281279
encoded_headers = self._encoder.encode(headers)

0 commit comments

Comments
 (0)