Skip to content

Commit

Permalink
Fix URL shortener
Browse files Browse the repository at this point in the history
Signed-off-by: PJ Hyett <pjhyett@gmail.com>
  • Loading branch information
tekkub authored and pjhyett committed Jan 9, 2009
1 parent 38c735a commit a50362f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-services.rb
Expand Up @@ -37,7 +37,7 @@ def service(name)

def shorten_url(url)
Timeout::timeout(6) do
Net::HTTP.get "tinyurl.com", "/api-create.php?url=#{commit['url']}"
Net::HTTP.get "tinyurl.com", "/api-create.php?url=#{url}"
end
rescue Timeout::Error
url
Expand Down

0 comments on commit a50362f

Please sign in to comment.