Project

General

Profile

Feature #2010 ยป http.patch

OlegPuchinin (Oleg Puchinin), 08/29/2009 07:46 PM

View differences:

/opt/rubysvn/lib/ruby/1.9.1/net/http.rb 2009-08-29 17:40:09.000000000 +0700
2313 2313
    #   }
2314 2314
    #
2315 2315
    def body
2316
      read_body()
2316
      b = read_body()
2317
      s = @header['content-type'][0]	
2318
      s = s.scan /charset=(.*)/
2319
      b.force_encoding s[0][0] if s.size != 0
2320
      b
2317 2321
    end
2318 2322

  
2319 2323
    # Because it may be necessary to modify the body, Eg, decompression