lib/socialcastr/api.rb in socialcastr-0.1.0 vs lib/socialcastr/api.rb in socialcastr-0.1.1
- old
+ new
@@ -101,9 +101,12 @@
def setup_https
url = URI.parse(@endpoint)
https = Net::HTTP.new(url.host, url.port)
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ if @debug
+ https.set_debug_output $stderr
+ end
https.use_ssl = true
return https
end
def build_query_string(path, query=nil)