diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:37:10 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:37:10 +0000 |
commit | 06591ad6b1aa55a9a05a17c1194a52999782fe3f (patch) | |
tree | 14c9a6deb0d454b3123a56a12f830344ed9b65dd /lib/rss/rss.rb | |
parent | 192ec21adf718e324fbe499b38997fa5bea98375 (diff) | |
download | ruby-06591ad6b1aa55a9a05a17c1194a52999782fe3f.tar.gz |
* lib/rss/parser.rb, lib/rss/atom.rb, lib/rss/rss.rb,
test/rss/rss-assertions.rb, test/rss/test_atom.rb: use
pack/unpack("m") instead of base64 library.
* lib/webrick/httpproxy.rb: use delete("\n") instead of chomp/chop
because the result of pack("m") might be multi-line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r-- | lib/rss/rss.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 0242a2a6a4..32741b03d1 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -1201,7 +1201,7 @@ EOC __send__(self.class.xml_getter).to_s else _content = content - _content = Base64.encode64(_content) if need_base64_encode? + _content = [_content].pack("m").delete("\n") if need_base64_encode? h(_content) end end |