Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
switch the default api url to use https
  • Loading branch information
Pedro Belo committed Oct 6, 2011
1 parent 40adb72 commit 0a302a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/heroku/nav.rb
Expand Up @@ -52,7 +52,7 @@ def resource_url
end

def api_url
ENV['API_URL'] || ENV['HEROKU_NAV_URL'] || "http://nav.heroku.com"
ENV['API_URL'] || ENV['HEROKU_NAV_URL'] || "https://nav.heroku.com"
end

# for non-rack use
Expand Down
2 changes: 1 addition & 1 deletion spec/api_spec.rb
Expand Up @@ -11,7 +11,7 @@
end

it "has a resource url based on the api url" do
Heroku::Nav::Header.resource_url.should == 'http://nav.heroku.com/header'
Heroku::Nav::Header.resource_url.should == 'https://nav.heroku.com/header'
end

it "doesn't raise" do
Expand Down
4 changes: 2 additions & 2 deletions spec/nav_spec.rb
Expand Up @@ -42,7 +42,7 @@ def app

it "adds the css right after the head" do
get '/', :body => '<html><head>... <body>'
last_response.body.should.equal "<html><head><link href='http://nav.heroku.com/header.css' media='all' rel='stylesheet' type='text/css' />... <body><!-- header -->"
last_response.body.should.equal "<html><head><link href='https://nav.heroku.com/header.css' media='all' rel='stylesheet' type='text/css' />... <body><!-- header -->"
end

it "doesn't add for non 200 responses" do
Expand Down Expand Up @@ -95,7 +95,7 @@ def app

it "adds the css right after the head" do
get '/', :body => '<html><head>... <body>'
last_response.body.should.equal "<html><head><link href='http://nav.heroku.com/footer.css' media='all' rel='stylesheet' type='text/css' />... <body>"
last_response.body.should.equal "<html><head><link href='https://nav.heroku.com/footer.css' media='all' rel='stylesheet' type='text/css' />... <body>"
end
end

Expand Down

0 comments on commit 0a302a9

Please sign in to comment.