lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.0.11 vs lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.0.12
- old
+ new
@@ -177,9 +177,15 @@
# TODO: Camelize all keys in api_params Hash.
api_uri = URI.parse(api_url)
+ pp api_url
+ pp api_uri.scheme
+
+ api_uri.scheme = "https"
+ pp api_uri.scheme
+
http_client = HTTPClient.new
case method
when :get
response = http_client.get(api_uri, api_params, headers)
when :post