зеркало из https://github.com/github/ruby.git
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:
Родитель
cfe937b9b2
Коммит
4edd787b14
|
@ -996,7 +996,6 @@ module Net
|
|||
else
|
||||
raise FTPProtoError, resp
|
||||
end
|
||||
return host, port
|
||||
end
|
||||
private :parse228
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ class Net::HTTPGenericRequest
|
|||
|
||||
def quote_string(str, charset)
|
||||
str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
|
||||
str = str.gsub(/[\\"]/, '\\\\\&')
|
||||
str.gsub(/[\\"]/, '\\\\\&')
|
||||
end
|
||||
|
||||
def flush_buffer(out, buf, chunked_p)
|
||||
|
|
Загрузка…
Ссылка в новой задаче