aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Twisted/py3/twisted/web/_http2.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-08-25 12:54:32 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-08-25 13:03:33 +0300
commit4a64a813e1d34e732f35d8a65147974f76395a6f (patch)
treea8da0dede5213f85e45b95047cfbdcf5427cf0b7 /contrib/python/Twisted/py3/twisted/web/_http2.py
parente9bbee265681b79a9ef9795bdc84cf6996f9cfec (diff)
downloadydb-4a64a813e1d34e732f35d8a65147974f76395a6f.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/Twisted/py3/twisted/web/_http2.py')
-rw-r--r--contrib/python/Twisted/py3/twisted/web/_http2.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/python/Twisted/py3/twisted/web/_http2.py b/contrib/python/Twisted/py3/twisted/web/_http2.py
index 24c24fc0ff..f048c7335e 100644
--- a/contrib/python/Twisted/py3/twisted/web/_http2.py
+++ b/contrib/python/Twisted/py3/twisted/web/_http2.py
@@ -1073,10 +1073,15 @@ class H2Stream:
@type reason: L{bytes}
@param headers: The HTTP response headers.
- @type headers: Any iterable of two-tuples of L{bytes}, representing header
- names and header values.
+ @type headers: L{twisted.web.http_headers.Headers}
"""
- self._conn.writeHeaders(version, code, reason, headers, self.streamID)
+ self._conn.writeHeaders(
+ version,
+ code,
+ reason,
+ [(k, v) for (k, values) in headers.getAllRawHeaders() for v in values],
+ self.streamID,
+ )
def requestDone(self, request):
"""