Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switch the default api url to use https

  • Loading branch information...
commit 0a302a998107445420fae3e2bfad9cc454b024df 1 parent 40adb72
@pedro pedro authored
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
2  lib/heroku/nav.rb
@@ -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
2  spec/api_spec.rb
@@ -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
4 spec/nav_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.