1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
gotoyuzo 2007-12-18 13:37:10 +00:00
parent 192ec21adf
commit 06591ad6b1
7 changed files with 15 additions and 9 deletions

View file

@ -570,7 +570,7 @@ EOA
text << char
char.succ!
end
base64_content = Base64.encode64(Zlib::Deflate.deflate(text))
base64_content = [Zlib::Deflate.deflate(text)].pack("m").delete("\n")
[false, true].each do |with_space|
xml_content = base64_content