Skip to content
Unverified Commit fd8b4f6c authored by ysaito1001's avatar ysaito1001 Committed by GitHub
Browse files

Fix protocol selection behavior in `ClientProtocolLoader` (#4165)

## Description
The bugs include
- The default SDK-supported protocols (`DefaultProtocols`) were listed
in an incorrect priority order.
- Protocol resolution logic incorrectly iterated over service-applied
protocols, which is returned by `getProtocols()` whose result may not
reflect the intended priority.

This PR addresses these issues.

## Testing
- Existing CI
- `ClientProtocolLoaderTest.kt`

## Checklist
- [x] For changes to the smithy-rs codegen or runtime crates, I have
created a changelog entry Markdown file in the `.changelog` directory,
specifying "client," "server," or both in the `applies_to` key.
- [x] For changes to the AWS SDK, generated SDK code, or SDK runtime
crates, I have created a changelog entry Markdown file in the
`.changelog` directory, specifying "aws-sdk-rust" in the `applies_to`
key.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent dc480dae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment