Servers base64-encode “grpc-status-details-bin” header with padding, but should be unpadded
Open
package: @grpc/grpc-js
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 716
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 10
Description
The spec for gRPC states that implementations should emit binary headers using *unpadded* base64-encoding (emphasis mine):
> Note that HTTP2 does not allow arbitrary octet sequences for header values so binary header values must be encoded using Base64 as per https://tools.ietf.org/html/rfc4648#section-4. Implementations MUST accept padded and un-padded values ***and should emit un-padded values***.
>
However, the server in this repo emits a “grpc-status-details-bin” header (a special binary header containing error details that accompany the gRPC status) that uses padding.
Contributor guide
Assessment
This issue has not been assessed yet.