Skip to content
Merged
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
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Dependencies {
// https://doc.akka.io/libraries/akka-core/current/project/downstream-upgrade-strategy.html
val akka = "2.10.5"
val akkaBinary = VersionNumber(akka).numbers match { case Seq(major, minor, _*) => s"$major.$minor" }
val akkaHttp = "10.7.1"
val akkaHttp = "10.7.2"
val akkaHttpBinary = VersionNumber(akkaHttp).numbers match { case Seq(major, minor, _*) => s"$major.$minor" }

val grpc = "1.72.0" // checked synced by VersionSyncCheckPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ abstract class GrpcProtocolWebBase(subType: String) extends AbstractGrpcProtocol
HttpResponse(
status = StatusCodes.OK,
headers = headers,
entity = HttpEntity(contentType, encodeDataToFrameBytes(codec, data, trailer)),
entity =
HttpEntity.Strict(contentType, encodeDataToFrameBytes(codec, data, trailer), reportContentLength = false),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no risk that this changes the behavior (for others) in undesired way and we should enable it via a config instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was also worried about that, but James has assured me. The Content-Length header is redundant with HTTP/2 but can be included for backwards compatibility, the binary gRPC protocol however was always only HTTP/2, so unlikely that some client would assume HTTP/1.1 stuff.

protocol = HttpProtocols.`HTTP/1.1`)

private def encodeDataToFrameBytes(codec: Codec, data: ByteString, trailer: Trailer): ByteString = {
Expand Down
Loading