Skip to content

Fix gRPC Web trailers encoding #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Apr 3, 2023

Motivation:

In gRPC Web HTTP trailers are encoded as a 'regular' gRPC message; that is a length prefixed message. For grpc-web we sent trailers back as regular trailers.

Modifications:

  • Send trailers back as a length prefixed body part.
  • Update tests.

Result:

Resolves #1580

Motivation:

In gRPC Web HTTP trailers are encoded as a 'regular' gRPC message; that
is a length prefixed message. For grpc-web we sent trailers back as
regular trailers.

Modifications:

- Send trailers back as a length prefixed body part.
- Update tests.

Result:

Resolves grpc#1580
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Apr 3, 2023
@glbrntt glbrntt merged commit b625430 into grpc:main Apr 3, 2023
@glbrntt glbrntt deleted the gb-grpc-web-fixes branch April 3, 2023 12:49
WendellXY pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

In gRPC Web HTTP trailers are encoded as a 'regular' gRPC message; that
is a length prefixed message. For grpc-web we sent trailers back as
regular trailers.

Modifications:

- Send trailers back as a length prefixed body part.
- Update tests.

Result:

Resolves grpc#1580
pinlin168 pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

In gRPC Web HTTP trailers are encoded as a 'regular' gRPC message; that
is a length prefixed message. For grpc-web we sent trailers back as
regular trailers.

Modifications:

- Send trailers back as a length prefixed body part.
- Update tests.

Result:

Resolves grpc#1580
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC-Web Error
2 participants