aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 557 forks source link

fix(middleware-sdk-api-gateway): only set default accept header if none provided #6110

Closed kuhe closed 1 month ago

kuhe commented 1 month ago

Issue

fixes https://github.com/aws/aws-sdk-js-v3/issues/6090

Description

Only set accept: application/json for APIG if no accept header was set.

Testing

unit, integ, and manual e2e testing

Additional context

v2 behavior: https://github.com/aws/aws-sdk-js/blob/master/lib/services/apigateway.js implemented incorrectly in v3: https://github.com/aws/aws-sdk-js-v3/pull/473

github-actions[bot] commented 3 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.