Browse files

Merge pull request #1 from iamleeg/patch-1

Use `URI#parse` instead of `URI#new`, because the former exists and the ...
  • Loading branch information...
2 parents e584700 + a13c11c commit 590403df79243316cdea3d283b30e2d43d35d229 @juliensobrier committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/google-safe-browsing-lookup.rb
View
2 lib/google-safe-browsing-lookup.rb
@@ -122,7 +122,7 @@ def canonical(url='')
url = "http://#{url}"
end
- uri = URI.new(url)
+ uri = URI.parse(url)
return uri.to_s
end

0 comments on commit 590403d

Please sign in to comment.