mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Lots of rubocop
This commit is contained in:
@@ -9,13 +9,13 @@ def pbPostData(url, postdata, filename = nil, depth = 0)
|
||||
# path = $2
|
||||
# path = "/" if path.length == 0
|
||||
userAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14"
|
||||
body = postdata.map { |key, value|
|
||||
body = postdata.map do |key, value|
|
||||
keyString = key.to_s
|
||||
valueString = value.to_s
|
||||
keyString.gsub!(/[^a-zA-Z0-9_\.\-]/n) { |s| sprintf("%%%02x", s[0]) }
|
||||
valueString.gsub!(/[^a-zA-Z0-9_\.\-]/n) { |s| sprintf("%%%02x", s[0]) }
|
||||
next "#{keyString}=#{valueString}"
|
||||
}.join("&")
|
||||
end.join("&")
|
||||
ret = HTTPLite.post_body(
|
||||
url,
|
||||
body,
|
||||
|
||||
Reference in New Issue
Block a user