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:
parent
cfe937b9b2
commit
4edd787b14
2 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue