Changeset 1777
- Timestamp:
- 05/15/07 22:50:25 (2 years ago)
- Files:
-
- trunk/lib/soap/streamHandler.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/streamHandler.rb
r1665 r1777 229 229 raise HTTPStreamError.new("#{ res.status }: #{ res.reason }") 230 230 end 231 232 # decode gzipped content, if we know it's there from the headers 231 233 if res.respond_to?(:header) and !res.header['content-encoding'].empty? and 232 234 res.header['content-encoding'][0].downcase == 'gzip' 235 receive_string = decode_gzip(receive_string) 236 # otherwise check for the gzip header 237 elsif @accept_encoding_gzip && receive_string[0..1] == "\x1f\x8b" 233 238 receive_string = decode_gzip(receive_string) 234 239 end