swapi-ruby
swapi-ruby copied to clipboard
Updated swapi.rb to handle HTTP <-> HTTPS
The base URL was incorrect, changed to "https://swapi.dev/api" URL redirect was not handled, added error handling from https://stackoverflow.com/a/39160567