From caf58db7ecce3d26c666302c51de8a05d319f60e Mon Sep 17 00:00:00 2001 From: Matt Fawcett Date: Wed, 6 Apr 2011 13:59:44 +0100 Subject: [PATCH] Use https as HTTP is throwing a 301 redirect to point at the https version --- lib/foursquare.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/foursquare.rb b/lib/foursquare.rb index 0d10207..ef9a25e 100644 --- a/lib/foursquare.rb +++ b/lib/foursquare.rb @@ -16,7 +16,7 @@ def initialize(ctoken, csecret, options={}) def consumer return @consumer if @consumer @consumer = ::OAuth::Consumer.new(@consumer_token, @consumer_secret, { - :site => "http://foursquare.com", + :site => "https://foursquare.com", :scheme => :header, :http_method => :post, :request_token_path => "/oauth/request_token", @@ -57,7 +57,7 @@ def clear_request_token end class Base - BASE_URL = 'http://api.foursquare.com/v1' + BASE_URL = 'https://api.foursquare.com/v1' FORMAT = 'json' attr_accessor :oauth