Skip to content

Commit

Permalink
fix: response encode mismatch (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
marocchino authored Nov 21, 2024
1 parent ba65529 commit 744b728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unleash/util/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def self.post(uri, body)
def self.http_connection(uri)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
http.response_body_encoding = 'UTF-8' if http.respond_to?(:response_body_encoding=)
http.open_timeout = Unleash.configuration.timeout # in seconds
http.read_timeout = Unleash.configuration.timeout # in seconds

Expand Down

0 comments on commit 744b728

Please sign in to comment.