awakesecurity / gRPC-haskell

Haskell gRPC support
https://hackage.haskell.org/package/grpc-haskell
Apache License 2.0
238 stars 75 forks source link

grpc-haskell{-core} -> 0.2.0: Fix MetadataMap duplicate-key ordering #132

Closed intractable closed 3 years ago

intractable commented 3 years ago

Commits are mostly atomic and can be reviewed in order; the most relevant are https://github.com/awakesecurity/gRPC-haskell/commit/85a2d138847ea654faf63d8cba895e82b1a104d4 and https://github.com/awakesecurity/gRPC-haskell/commit/eb7f78f6ab3cdb7e9c71ba967214d51b10aa60c7.

This PR intends to make our MetadataMap type compliant with this requirement from the spec:

Custom-Metadata header order is not guaranteed to be preserved except for values
with duplicate header names.

and extends the test suite accordingly.