Skip to content

Commit

Permalink
Merge pull request #252 from ghepting/gary/issue-251
Browse files Browse the repository at this point in the history
address deprecation of URI.escape in uri v0.10.1 (see: ruby/uri#9)
  • Loading branch information
rubydog authored Dec 14, 2022
2 parents 6cc9061 + e725de8 commit fcdab67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Change Log

## Master
* Replaces deprecated `URI.escape` with `URI.encode_www_form_component` in Contentful::Management::Request#id
* Configured VCR to redact sensitive data

## 3.6.0
Expand Down
2 changes: 1 addition & 1 deletion lib/contentful/management/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(client, endpoint, query = {}, id = nil, headers = {})

if id
@type = :single
@id = URI.escape(id)
@id = URI.encode_www_form_component(id)
else
@type = :multi
@id = nil
Expand Down

0 comments on commit fcdab67

Please sign in to comment.