googlebase 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/lib/google/base.rb +2 -2
- data/lib/google/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/google/base.rb
CHANGED
@@ -69,7 +69,7 @@ module Google
|
|
69
69
|
:raw_data => nil,
|
70
70
|
}.merge(o)
|
71
71
|
if options[:raw_data]
|
72
|
-
url = URI.parse(url)
|
72
|
+
url = URI.parse(URI.escape(url))
|
73
73
|
http = Net::HTTP.new(url.host, url.port)
|
74
74
|
result = http.request_post(url.request_uri, options[:raw_data], @@connection.headers)
|
75
75
|
result.body
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
}.merge(o)
|
88
88
|
|
89
89
|
url += hash_to_query_string(options[:query_hash], options[:qsi]) unless options[:query_hash].nil?
|
90
|
-
url = URI.parse(url)
|
90
|
+
url = URI.parse(URI.escape(url))
|
91
91
|
req = if method == 'post'
|
92
92
|
Net::HTTP::Post.new(url.request_uri, @@connection.headers)
|
93
93
|
else
|
data/lib/google/version.rb
CHANGED