seek-oss / serverless-haskell

Deploying Haskell applications to AWS Lambda with Serverless
MIT License
215 stars 22 forks source link

Don't rely on key ordering in JSON tests #165

Closed koterpillar closed 3 years ago

koterpillar commented 3 years ago

See https://github.com/commercialhaskell/stackage/issues/5878.

dmoverton commented 3 years ago

There are some situation in which header order does matter. E.g. see https://stackoverflow.com/questions/11197693/is-the-order-of-webrequest-headers-important.

koterpillar commented 3 years ago

These fields aren't storing multiple values per HTTP header (need to use a separate key for that - another PR perhaps), so this Eq should be fine to use.