Module: HTTPResponseDecodeContentOverride
- Included in:
- Net::HTTPResponse
- Defined in:
- lib/utils.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/utils.rb', line 48 def body res = super if self['content-length'] self['content-length']= res.bytesize end res end |
#initialize(h, c, m) ⇒ Object
44 45 46 47 |
# File 'lib/utils.rb', line 44 def initialize(h,c,m) super(h,c,m) @decode_content = true end |