Skip to content

Empty string instead of page content #514

@cognita

Description

@cognita

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions