所以这里所有的问题都是因为上述的拉取请求(PR)在今年一月开始移除了 TopicEmbed 中的尾部斜杠吗?我对这个更改感到矛盾。说实话,我更希望我们尊重管理员发送给我们的内容。
我认为这是我们问题的根源。
您能运行以下代码吗 @Thiago_Mobilon
url = "https://tecnoblog.net/noticias/governo-renova-app-da-cnh-para-baratear-obtencao-do-documento"
fd = FinalDestination.new(url, validate_uri: true, max_redirects: 5, follow_canonical: true)
uri = fd.resolve
puts uri
html = FinalDestination::HTTP.get(uri)
puts html.truncate(200)
fd.resolve 应该能够在 puts uri 这一行添加尾部斜杠。我担心它失败了。