-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clobbering of marshalled Accept header #1174
Conversation
// format of the document returned by the service, such as GetExport | ||
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-export-api.html. | ||
// See the same fix in V1: | ||
// https://github.com/aws/aws-sdk-java/blob/cd2275c07df8656033bfa9baa665354bfb17a6bf/aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/internal/AcceptJsonRequestHandler.java#L29 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another reason for this change is that customer can provide the header via overrideConfiguration
and we should honor it :)
@@ -0,0 +1,53 @@ | |||
package software.amazon.awssdk.services.apigateway.internal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating the test class! Missing copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
4c7d697
to
9a06fcf
Compare
Codecov Report
@@ Coverage Diff @@
## master #1174 +/- ##
============================================
+ Coverage 58.97% 58.98% +0.01%
- Complexity 4592 4595 +3
============================================
Files 743 744 +1
Lines 23012 23020 +8
Branches 1720 1721 +1
============================================
+ Hits 13571 13579 +8
Misses 8754 8754
Partials 687 687
Continue to review full report at Codecov.
|
…4d917114d Pull request: release <- staging/7a715510-b892-4064-bba4-2c84d917114d
Description
Motivation and Context
Bug fix.
Testing
Unit tests to test interceptor and added integration test using
GetExport
.Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense