astro-em-http-request 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -221,7 +221,7 @@ module EventMachine
221
221
 
222
222
  # no connection signature on DNS failures
223
223
  # fail the connection directly
224
- dns_error == true ? fail : unbind
224
+ dns_error == true ? fail(self) : unbind
225
225
  end
226
226
 
227
227
  # assign a stream processing block
@@ -109,7 +109,11 @@ module EventMachine::HttpDecoders
109
109
  end
110
110
 
111
111
  def finalize
112
- Zlib::GzipReader.new(StringIO.new(@buf)).read
112
+ begin
113
+ Zlib::GzipReader.new(StringIO.new(@buf.to_s)).read
114
+ rescue Zlib::Error
115
+ raise DecoderError
116
+ end
113
117
  end
114
118
  end
115
119
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astro-em-http-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Grigorik
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-21 00:00:00 +02:00
13
+ date: 2009-10-25 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency