async-http 0.24.2 → 0.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 544832b67f4090c760bfbc3e583d9f63d0300f1add25197c76fd374277e2490f
4
- data.tar.gz: a7d9db41872b45d47575d864416e3be669f0b2cac6555574b3f94d9d322313c0
3
+ metadata.gz: 570eb9bb6a0b2a283e9149bb2e158e1f72caedae249e872622c335ef2676bba2
4
+ data.tar.gz: 93049e1d6687cdc102725553a48e9401ebc8ef743c3a54343b5de3b41ef8c0b7
5
5
  SHA512:
6
- metadata.gz: 5ff96006418add5ca4f1c79f806134795f7387ead61b88e2f3534a66a1fc2584cd8667af5389baf427536060780e39464b6987224a4169a292d2abf0f9905ffa
7
- data.tar.gz: 7b658324c3c6ee42a3c849e2953c6157686abef1b6efe8a7cd439c840a33bb7da04e9f28897a8459726d8a57eca158ce07d6d6e0b2d93b270fa885c7df16cbf5
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.match?(content_type)
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|
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.24.2"
23
+ VERSION = "0.24.3"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.2
4
+ version: 0.24.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams