Skip to content

Commit

Permalink
fix: legacy ruby support
Browse files Browse the repository at this point in the history
  • Loading branch information
marocchino committed Nov 21, 2024
1 parent 26f793a commit 90b9330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unleash/util/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +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'
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 90b9330

Please sign in to comment.