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
# }
#
def body
read_body()
b = read_body()
s = @header['content-type'][0]
s = s.scan /charset=(.*)/
b.force_encoding s[0][0] if s.size != 0
b
end
# Because it may be necessary to modify the body, Eg, decompression
    (1-1/1)