Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
The Gzip
middleware for Faraday 1 and 2 adds the necessary Accept-Encoding
headers and automatically decompresses the response. If the "Accept-Encoding" header isn't set in the request, it defaults to gzip,deflate
and appropriately handles the server's compressed response. This functionality resembles what Ruby does internally in Net::HTTP#get
. If Brotli is included in your Gemfile, the middleware also adds br
to the header for Brotli support.
Add this line to your application's Gemfile:
gem 'faraday-gzip', '~> 3'
And then execute:
bundle install
Or install it yourself as:
gem install faraday-gzip
To enable the middleware in your Faraday connection, add it as shown below:
require 'faraday/gzip' # <=== Add this line
conn = Faraday.new(...) do |f|
f.request :gzip # <=== Add this line
# Additional configuration...
end
To contribute or make changes:
bundle
to install dependenciesrspec .
Bug reports and pull requests are welcome on GitHub.
This gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that faraday-gzip demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.