Fred-grais / transifex-interface-ruby

A Transifex API interface written in ruby
MIT License
5 stars 12 forks source link

301 Moved Permanently issue (0.0.1) #11

Open agnessa opened 7 years ago

agnessa commented 7 years ago

I had a working transifex integration which started returning 301 for any call (cannot say when exactly as this is something we use occasionally). I think this is caused by the fact that requests should now be https; I managed to get it working by changing:

https://github.com/Fred-grais/transifex-interface-ruby/blob/master/lib/transifex.rb#L47

to:

res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|