blinry / nom

"Lose weight and hair through stress and poor nutrition"
GNU General Public License v2.0
64 stars 4 forks source link

Use https instead of http for fddb.info #5

Closed hellerve closed 5 years ago

hellerve commented 5 years ago

Search fails for me when using http://fddb.info/db/de/suche/?udd=0&cat=site-de&search=#{URI.escape(term)}—I’m getting an invalid redirect error. Using https as a scheme fixes this.

Cheers

Appendix A: Original Traceback

$ nom search food
(no matching entries found)
---------------------
     (0) total

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:225:in `open_loop'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:717:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:35:in `open'
/Library/Ruby/Gems/2.3.0/gems/nom-0.1.3/lib/nom/nom.rb:111:in `search'
/Library/Ruby/Gems/2.3.0/gems/nom-0.1.3/bin/nom:61:in `<top (required)>'
/usr/local/bin/nom:22:in `load'
/usr/local/bin/nom:22:in `<main>'
redirection forbidden: http://fddb.info/db/de/suche/?udd=0&cat=site-de&search=food -> https://fddb.info/db/de/suche/?udd=0&cat=site-de&search=food
Something went wrong. Usage of this command is: nom search <term>
blinry commented 5 years ago

Thanks, Veit, for finding this issue, fixing it, and this writing up! :)