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

cleanup by @vipulnsward [GH fixes #262]

lib/net/http/generic_request.rb: Removes unnecessary assignment
lib/net/ftp.rb: Fixes dead code


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2013-03-22 11:57:51 +00:00
parent cfe937b9b2
commit 4edd787b14
2 changed files with 1 additions and 2 deletions

View file

@ -996,7 +996,6 @@ module Net
else else
raise FTPProtoError, resp raise FTPProtoError, resp
end end
return host, port
end end
private :parse228 private :parse228

View file

@ -282,7 +282,7 @@ class Net::HTTPGenericRequest
def quote_string(str, charset) def quote_string(str, charset)
str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
str = str.gsub(/[\\"]/, '\\\\\&') str.gsub(/[\\"]/, '\\\\\&')
end end
def flush_buffer(out, buf, chunked_p) def flush_buffer(out, buf, chunked_p)