He-Pin commented on code in PR #755:
URL: https://github.com/apache/pekko-http/pull/755#discussion_r2335998267
##########
http2-tests/src/test/scala/org/apache/pekko/http/impl/engine/http2/Http2FrameHpackSupport.scala:
##########
@@ -58,10 +57,9 @@ trait Http2FrameHpackSupport extends
Http2FrameProbeDelegator with Http2FrameSen
val decoder = new Decoder(Http2Protocol.InitialMaxHeaderListSize,
Http2Protocol.InitialMaxHeaderTableSize)
def decodeHeaders(bytes: ByteString): Seq[(String, String)] = {
- val bis = ByteStringInputStream(bytes)
val hs = new VectorBuilder[(String, String)]()
- decoder.decode(bis,
+ decoder.decode(bytes.asInputStream,
Review Comment:
try finally
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]