Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Gzip and deflate compression in curb http driver

  • Loading branch information...
commit 1341d75ac8b43243d95858235fff52076980c0ad 1 parent 081d728
@codesnik codesnik authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/handsoap/http/drivers/curb_driver.rb
View
3  lib/handsoap/http/drivers/curb_driver.rb
@@ -22,6 +22,9 @@ def get_curl(url)
@curl = ::Curl::Easy.new(url)
@curl.timeout = Handsoap.timeout
@curl.enable_cookies = @enable_cookies
+
+ # enables both deflate and gzip compression of responses
+ @curl.encoding = ''
if Handsoap.follow_redirects?
@curl.follow_location = true
Please sign in to comment.
Something went wrong with that request. Please try again.