Created
September 15, 2012 19:24
-
-
Save cheald/3729392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
domain = Curl::Easy.http_head(url) do |c| | |
c.follow_location = true | |
c.timeout = 4 | |
end.last_effective_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment