lib/getty_connect/connection.rb in getty_connect-0.0.2 vs lib/getty_connect/connection.rb in getty_connect-0.0.3
- old
+ new
@@ -3,11 +3,14 @@
module GettyConnect
module Connection
private
- def connection
- url = "https://connect.gettyimages.com"
+ def connection(use_ssl=false)
+ url = "http://connect.gettyimages.com"
+ if (use_ssl)
+ url = "https://connect.gettyimages.com"
+ end
options = {
:ssl => { :verify => false },
:url => url
}