smithy-rs/rust-runtime
Dj 4beac5f19d
Allow expected content-type to ignore parameters (#3724)
Fixes: #3471

## Motivation and Context
An issue was raised about a mobile client that appends "; charset=utf-8"
to the Content-Type when using restJson1. The [latest
RFC](https://www.rfc-editor.org/rfc/rfc8259) for "application/json" does
not register a charset parameter, but indicates it is reasonable to
accept it.

## Description
This change loosens the validation of the expected content type to allow
all parameters.

## Testing
* Tests for each protocol were added to
[smithy](https://github.com/smithy-lang/smithy/pull/2296)
* ran the runtime and codegen tests
* Added test for rest-xml, as smithy-rs does not currently run the
smithy tests.

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
2024-06-28 15:25:23 +00:00
..
aws-smithy-async Sourcing service config from the environment. (#3493) 2024-04-01 14:50:31 +00:00
aws-smithy-checksums Unpin pinned dependencies (#3712) 2024-06-21 18:31:05 +00:00
aws-smithy-client Independently version deprecated runtime crates (#3364) 2024-01-16 18:36:30 +00:00
aws-smithy-compression Add request compression runtime crate (#3627) 2024-05-08 09:26:19 -07:00
aws-smithy-eventstream Defer event stream semver hazard fix (#3371) 2024-01-23 20:06:17 +00:00
aws-smithy-experimental Make `http` v0 usage more evident (#3711) 2024-06-25 14:09:00 +00:00
aws-smithy-http Make `http` v0 usage more evident (#3711) 2024-06-25 14:09:00 +00:00
aws-smithy-http-auth Independently version deprecated runtime crates (#3364) 2024-01-16 18:36:30 +00:00
aws-smithy-http-server Allow expected content-type to ignore parameters (#3724) 2024-06-28 15:25:23 +00:00
aws-smithy-http-server-python Switch links to Smithy v2 documentation (#2037) 2024-04-12 23:11:33 +00:00
aws-smithy-http-server-typescript Independently version all runtime crates (#3448) 2024-02-28 22:35:28 +00:00
aws-smithy-http-tower Independently version deprecated runtime crates (#3364) 2024-01-16 18:36:30 +00:00
aws-smithy-json Independently version all runtime crates (#3448) 2024-02-28 22:35:28 +00:00
aws-smithy-mocks-experimental Sourcing service config from the environment. (#3493) 2024-04-01 14:50:31 +00:00
aws-smithy-protocol-test Independently version all runtime crates (#3448) 2024-02-28 22:35:28 +00:00
aws-smithy-query Independently version all runtime crates (#3448) 2024-02-28 22:35:28 +00:00
aws-smithy-runtime Make `http` v0 usage more evident (#3711) 2024-06-25 14:09:00 +00:00
aws-smithy-runtime-api Make `http` v0 usage more evident (#3711) 2024-06-25 14:09:00 +00:00
aws-smithy-types implement http-body 1.0 for PathBody (#3673) 2024-06-03 20:45:13 +00:00
aws-smithy-types-convert Update to remove use of deprecated method (#3468) 2024-03-06 20:03:39 +00:00
aws-smithy-wasm expose connector in user agent (#3667) 2024-06-12 16:14:15 +00:00
aws-smithy-xml Switch links to Smithy v2 documentation (#2037) 2024-04-12 23:11:33 +00:00
inlineable Updating partition to pass `implicitGlobalRegion` (#3705) 2024-06-18 21:54:30 +00:00
.gitignore Adding new gradle tasks for generating Cargo.lock (#3689) 2024-06-16 02:59:53 +00:00
Cargo.lock Allow expected content-type to ignore parameters (#3724) 2024-06-28 15:25:23 +00:00
Cargo.toml Add request compression runtime crate (#3627) 2024-05-08 09:26:19 -07:00
build.gradle.kts Fix the build against JDK 20 (#3323) 2023-12-15 16:18:36 +00:00
clippy.toml Add clippy.toml with forbidden methods & fix SystemTime usages (#2882) 2023-07-28 17:16:44 +00:00