Skip to content

Commit

Permalink
Use URI#parse instead of URI#new, because the former exists and t…
Browse files Browse the repository at this point in the history
…he latter doesn't.
  • Loading branch information
Graham Lee committed Jan 5, 2012
1 parent e584700 commit a13c11c
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}"
end

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

return uri.to_s
end
Expand Down

0 comments on commit a13c11c

Please sign in to comment.