smithy icon indicating copy to clipboard operation
smithy copied to clipboard

Increase support for the Accept header

Open 82marbag opened this issue 2 years ago • 1 comments

Some smithy clients and servers, such as in Typescript, allow the Accept header to reflect HTTP's spec, by allowing */* and type/*. The smithy spec allows neither of them.

After discussing this change, it was proposed to:

  • reflect the HTTP spec regarding the Accept header more closely, allowing *, but no q-factor weighting
  • servers should not use Accept to do protocol selection and allow them to respond in any of the allowed (by the header's value) ways

82marbag avatar Aug 09 '22 22:08 82marbag

Related issue in smithy-rs, where we follow more closely the smithy spec: https://github.com/awslabs/smithy-rs/issues/1544

82marbag avatar Aug 09 '22 22:08 82marbag

Closed by #1365

kstich avatar Dec 09 '22 16:12 kstich