Permalink
Browse files

switch the default api url to use https

  • Loading branch information...
1 parent 40adb72 commit 0a302a998107445420fae3e2bfad9cc454b024df @pedro pedro committed Oct 6, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/heroku/nav.rb
  2. +1 −1 spec/api_spec.rb
  3. +2 −2 spec/nav_spec.rb
View
@@ -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
View
@@ -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
View
@@ -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
@@ -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

0 comments on commit 0a302a9

Please sign in to comment.