Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ private[http] final class FrameEventRenderer extends GraphStage[FlowShape[FrameE
data(maskOffset + 3) = ((mask & 0x000000FF) >> 0).toByte
}

ByteString(data)
ByteString.fromArrayUnsafe(data)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ trait PredefinedToEntityMarshallers extends MultipartMarshallers {
val byteBuffer = contentType.charset.nioCharset.encode(charBuffer)
val array = new Array[Byte](byteBuffer.remaining())
byteBuffer.get(array)
HttpEntity(contentType, array)
HttpEntity(contentType, ByteString.fromArrayUnsafe(array))
} else HttpEntity.Empty

implicit val DoneMarshaller: ToEntityMarshaller[pekko.Done] =
Expand Down
Loading