Quand j'utilise ce que tout va bien:Ruby erreur open_uri NoMethodError: méthode non définie bande » pour 10: Fixnum
html = open("http://"+self.url).read
Mais quand j'ajoute un agent utilisateur:
html = open("http://"+self.url, "User-Agent" => "Ruby", 'read_timeout' => 10).read
Je reçois:
NoMethodError: undefined method `strip' for 10:Fixnum
from /Users/a_user/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http/header.rb:17:in `block in initialize_http_header'
Qu'est-ce qui ne va pas ici?