async-http 0.24.2 → 0.24.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/content_encoding.rb +1 -1
- data/lib/async/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 570eb9bb6a0b2a283e9149bb2e158e1f72caedae249e872622c335ef2676bba2
|
4
|
+
data.tar.gz: 93049e1d6687cdc102725553a48e9401ebc8ef743c3a54343b5de3b41ef8c0b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8694e40e0e0eb6f1a1bebeef6b41385bc05ecd87549feb2943306828037e6a24c11113c0271ce26b3ab9a4f2e8512d1cf19c22d03fb59c61b5606cc253d60798
|
7
|
+
data.tar.gz: f785ab8a1e9f71bdfd2a24f12f30de4474cbefcd08745a8ec4976a94b84c702f94319ef5c30b31fc898506c24df1206e41cec25b929bf7d8faf2229f2989ceac
|
@@ -45,7 +45,7 @@ module Async
|
|
45
45
|
|
46
46
|
# TODO use http-accept and sort by priority
|
47
47
|
if !response.body.empty? and accept_encoding = request.headers['accept-encoding']
|
48
|
-
if content_type = response.headers['content-type'] and @content_types
|
48
|
+
if content_type = response.headers['content-type'] and @content_types =~ content_type
|
49
49
|
body = response.body
|
50
50
|
|
51
51
|
accept_encoding.each do |name|
|
data/lib/async/http/version.rb
CHANGED