Skip to content

Commit

Permalink
address deprecation of URI.escape in uri v0.10.1 (see: ruby/uri#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Hepting committed Dec 9, 2022
1 parent 6cc9061 commit e725de8
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 e725de8

Please sign in to comment.