it would be better to just switch this to use Canvas::HTTP.get (see lib/canvas/http.rb).  that handles http/https and also redirects.