We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to download a html page and I just get an empty string.
HTTP.get("http://stadtschreiber.ruhr/").to_s => ""
When using Net::HTTP, I get the data I am expecting:
Net::HTTP.get(URI("http://stadtschreiber.ruhr/"))[0..15] => "<!DOCTYPE html>\n"
http version: 4.0.0 ruby version: 2.5.3
The text was updated successfully, but these errors were encountered:
Dupe of known bug #422.
The cause is the server is sending an Upgrade header:
Upgrade
Upgrade: h2,h2c
These are presently mishandled by this library due to a bug. See open PR #489 for a potential fix.
Sorry, something went wrong.
No branches or pull requests
I'm trying to download a html page and I just get an empty string.
When using Net::HTTP, I get the data I am expecting:
http version: 4.0.0
ruby version: 2.5.3
The text was updated successfully, but these errors were encountered: