pauldix-feedzirra 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedzirra/feed.rb +2 -2
- data/lib/feedzirra.rb +1 -1
- metadata +1 -1
data/lib/feedzirra/feed.rb
CHANGED
@@ -100,7 +100,7 @@ module Feedzirra
|
|
100
100
|
curl.headers["User-Agent"] = (options[:user_agent] || USER_AGENT)
|
101
101
|
curl.headers["If-Modified-Since"] = options[:if_modified_since].httpdate if options.has_key?(:if_modified_since)
|
102
102
|
curl.headers["If-None-Match"] = options[:if_none_match] if options.has_key?(:if_none_match)
|
103
|
-
|
103
|
+
curl.headers["Accept-encoding"] = 'gzip, deflate' if options.has_key?(:compress)
|
104
104
|
curl.follow_location = true
|
105
105
|
curl.userpwd = options[:http_authentication].join(':') if options.has_key?(:http_authentication)
|
106
106
|
|
@@ -216,7 +216,7 @@ module Feedzirra
|
|
216
216
|
curl.headers["User-Agent"] = (options[:user_agent] || USER_AGENT)
|
217
217
|
curl.headers["If-Modified-Since"] = options[:if_modified_since].httpdate if options.has_key?(:if_modified_since)
|
218
218
|
curl.headers["If-None-Match"] = options[:if_none_match] if options.has_key?(:if_none_match)
|
219
|
-
|
219
|
+
curl.headers["Accept-encoding"] = 'gzip, deflate' if options.has_key?(:compress)
|
220
220
|
curl.follow_location = true
|
221
221
|
curl.userpwd = options[:http_authentication].join(':') if options.has_key?(:http_authentication)
|
222
222
|
|
data/lib/feedzirra.rb
CHANGED