well-typed / grapesy

Native Haskell gRPC client and server based on `http2`
Other
31 stars 4 forks source link

We should not use `Content-Length` to figure out if we are in the Trailers-Only case #120

Open edsko opened 2 months ago

edsko commented 2 months ago

We currently use Network.HTTP2.Client.responseBodySize to figure out if we are in the trailers-only case or not, which in turn is based on the HTTP Content-Length header (https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length). This is doubly wrong: