Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Aug 18, 2017
1 parent 74236ad commit 7a6c160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday_middleware/gzip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def inflate(body)
end

def brotli_inflate(body)
dependency 'brotli'
self.class.dependency 'brotli'

Brotli.inflate(body)
end
Expand Down
1 change: 1 addition & 0 deletions spec/unit/gzip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'faraday_middleware/gzip'

describe FaradayMiddleware::Gzip, :type => :response do
require 'brotli' unless jruby?

let(:middleware) {
described_class.new(lambda { |env|
Expand Down

0 comments on commit 7a6c160

Please sign in to comment.