pjfanning commented on code in PR #1135:
URL: https://github.com/apache/pekko-http/pull/1135#discussion_r3529219525
##########
http-core/src/main/scala/org/apache/pekko/http/impl/engine/ws/PerMessageDeflate.scala:
##########
@@ -194,7 +194,7 @@ private[http] object PerMessageDeflate {
private def inflate(data: ByteString, appendTail: Boolean): ByteString = {
try {
val input = if (appendTail) data ++ EmptyStoredBlock else data
- inflater.setInput(input.toArray)
+ inflater.setInput(input.toArrayUnsafe())
Review Comment:
actually it's CRC32 that is what uses the bytes from the ByteString not the
Inflater directly
--
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]