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

Commit c4b6363

Browse files
committed
HTTP20Response has no attribute stream.
1 parent 94d7d18 commit c4b6363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyper/http20/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def gettrailer(self, name, default=None):
220220
"""
221221
# We need to get the trailers.
222222
if self._trailers is None:
223-
trailers = self.stream.gettrailers() or []
223+
trailers = self._stream.gettrailers() or []
224224
self._trailers = Headers(trailers)
225225

226226
return self._trailers.getheader(name, default)
@@ -238,7 +238,7 @@ def gettrailers(self):
238238
"""
239239
# We need to get the trailers.
240240
if self._trailers is None:
241-
trailers = self.stream.gettrailers() or []
241+
trailers = self._stream.gettrailers() or []
242242
self._trailers = Headers(trailers)
243243

244244
return list(self._trailers.items())

0 commit comments

Comments
 (0)