Skip to content

Commit

Permalink
recover some deprecated func
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianyi Wang committed May 17, 2023
1 parent 30b3388 commit ceeb008
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* This setting no longer has any effect. REST-protocol paths will now never be normalized after serialization.
7 changes: 7 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ceeb008

Please sign in to comment.