]> git.openstreetmap.org Git - rails.git/commitdiff
Use https when redirecting to the render server
authorTom Hughes <tom@compton.nu>
Fri, 9 Feb 2018 22:31:45 +0000 (22:31 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 9 Feb 2018 22:31:45 +0000 (22:31 +0000)
app/controllers/export_controller.rb
test/controllers/export_controller_test.rb

index 1b7beaad696dd8ca3503babaa26e67748a70e511..afdf4d8d7e38005f89c310d2f8bf9f0033d84cbb 100644 (file)
@@ -19,7 +19,7 @@ class ExportController < ApplicationController
       format = params[:mapnik_format]
       scale = params[:mapnik_scale]
 
-      redirect_to "http://render.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}"
+      redirect_to "https://render.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}"
     end
   end
 
index 972e08cc37258edb7b2cee94c9309c1d8cf1126b..94cf6cf52ef3d33340bd9d4375e55c81a4e4ec64 100644 (file)
@@ -27,7 +27,7 @@ class ExportControllerTest < ActionController::TestCase
   def test_finish_mapnik
     get :finish, :params => { :minlon => 0, :minlat => 50, :maxlon => 1, :maxlat => 51, :format => "mapnik", :mapnik_format => "test", :mapnik_scale => "12" }
     assert_response :redirect
-    assert_redirected_to "http://render.openstreetmap.org/cgi-bin/export?bbox=0.0,50.0,1.0,51.0&scale=12&format=test"
+    assert_redirected_to "https://render.openstreetmap.org/cgi-bin/export?bbox=0.0,50.0,1.0,51.0&scale=12&format=test"
   end
 
   ##