From d7f8036a17505d7c4f89596856d15790bc3ee16d Mon Sep 17 00:00:00 2001 From: Youri van der Lans Date: Thu, 19 Aug 2021 12:46:52 +0200 Subject: [PATCH] Fixed redirect issue An error was raised because of an unexpected redirect due to not directly using https. --- lib/sisow/api/request.rb | 2 +- spec/models/request_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sisow/api/request.rb b/lib/sisow/api/request.rb index 1779481..5e71bc6 100644 --- a/lib/sisow/api/request.rb +++ b/lib/sisow/api/request.rb @@ -4,7 +4,7 @@ module Sisow module Api class Request - BASE_URI = "http://www.sisow.nl/Sisow/iDeal/RestHandler.ashx" + BASE_URI = "https://www.sisow.nl/Sisow/iDeal/RestHandler.ashx" attr_writer :merchant_id, :merchant_key diff --git a/spec/models/request_spec.rb b/spec/models/request_spec.rb index 9529ee6..4e67def 100644 --- a/spec/models/request_spec.rb +++ b/spec/models/request_spec.rb @@ -13,7 +13,7 @@ it "should point to the base URI of the Sisow API" do request = Sisow::Api::Request.new - request.send(:base_uri).should == "http://www.sisow.nl/Sisow/iDeal/RestHandler.ashx" + request.send(:base_uri).should == "https://www.sisow.nl/Sisow/iDeal/RestHandler.ashx" end it "should perform properly" do