diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 26087d36c89..fc734af81e3 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -4,6 +4,6 @@ ### SDK Bugs * `rest`: Remove unnecessary path normalization behavior. - * This behavior would incorrectly mutate request paths with URI-encoded characters, potentially resulting in misrouted requests. + * This behavior would incorrectly mutate request paths with URI-encoded characters, potentially resulting in misrouted requests. * `config`: Deprecate `DisableRestProtocolURICleaning` config setting. - * This setting no longer has any effect. REST-protocol paths will now never be normalized after serialization. \ No newline at end of file + * This setting no longer has any effect. REST-protocol paths will now never be normalized after serialization. \ No newline at end of file diff --git a/aws/config.go b/aws/config.go index 8a70f763b05..6ccd8ee2602 100644 --- a/aws/config.go +++ b/aws/config.go @@ -486,6 +486,13 @@ func (c *Config) WithLowerCaseHeaderMaps(t bool) *Config { return c } +// Deprecated: This setting no longer has any effect. +// RESTful paths are no longer cleaned after request serialization. +func (c *Config) WithDisableRestProtocolURICleaning(t bool) *Config { + c.DisableRestProtocolURICleaning = &t + return c +} + // MergeIn merges the passed in configs into the existing config object. func (c *Config) MergeIn(cfgs ...*Config) { for _, other := range cfgs {