Skip to content

Commit

Permalink
Merge pull request #1 from iamleeg/patch-1
Browse files Browse the repository at this point in the history
Use `URI#parse` instead of `URI#new`, because the former exists and the ...
  • Loading branch information
juliensobrier committed Jan 5, 2012
2 parents e584700 + a13c11c commit 590403d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google-safe-browsing-lookup.rb
Expand Up @@ -122,7 +122,7 @@ def canonical(url='')
url = "http://#{url}" url = "http://#{url}"
end end


uri = URI.new(url) uri = URI.parse(url)


return uri.to_s return uri.to_s
end end
Expand Down

0 comments on commit 590403d

Please sign in to comment.