From ceeb008f207735b82173a6c0d7a2ae3b4b2f95b2 Mon Sep 17 00:00:00 2001 From: Tianyi Wang Date: Wed, 17 May 2023 13:57:14 -0400 Subject: [PATCH] recover some deprecated func --- CHANGELOG_PENDING.md | 4 ++-- aws/config.go | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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 {