Skip to content

Commit

Permalink
Set request encoding to identity to prevent Zlib::BufError
Browse files Browse the repository at this point in the history
  • Loading branch information
kuldeepaggarwal committed Apr 23, 2018
1 parent c35c1ef commit af9f479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/instagram_reporter/instagram_api_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def conn
faraday.proxy roll_proxy_server if roll_proxy_server.present?
faraday.options.timeout = (ENV['INSTAGRAM_REQUEST_TIMEOUT_LIMIT'] || 15).to_i
faraday.headers['User-Agent'] = USER_AGENT
faraday.headers['Accept-Encoding'] = 'identity'
end
end

Expand Down

0 comments on commit af9f479

Please sign in to comment.