dohruby 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/doh/util/http_helper.rb +3 -2
- metadata +2 -2
data/lib/doh/util/http_helper.rb
CHANGED
@@ -68,8 +68,9 @@ class HttpHelper
|
|
68
68
|
end
|
69
69
|
|
70
70
|
#shortcut method
|
71
|
-
def self.load(url, use_ssl = true)
|
72
|
-
|
71
|
+
def self.load(url, use_ssl = true, encode_url = false)
|
72
|
+
url = URI.escape(url) if encode_url
|
73
|
+
helper = HttpHelper.new(url)
|
73
74
|
helper.nossl if !use_ssl
|
74
75
|
helper.get
|
75
76
|
end
|