Feature #2010 ยป http.patch
/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
|