Skip to content

Commit

Permalink
Handle compressed responses (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Rawat authored and fotinakis committed Apr 14, 2017
1 parent dd8ca66 commit 5a2d196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/percy/capybara/httpfetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.fetch(url)
# influenced by any HTTP middleware/restrictions. This helps us avoid causing lots of
# problems for people using gems like VCR/WebMock. We also disable certificate checking
# because, as odd as that is, it's the default state for Selenium Firefox and others.
output = `curl --insecure -v -o #{temppath} "#{url.shellescape}" 2>&1`
output = `curl --compressed --insecure -v -o #{temppath} "#{url.shellescape}" 2>&1`
content_type = output.match(/< Content-Type:(.*)/i)
content_type = content_type[1].strip if content_type

Expand Down

0 comments on commit 5a2d196

Please sign in to comment.