Skip to content

Bug found in HTTP::Tiny #8

Open
@rthawkcom

Description

@rthawkcom

If the server responds with "\n\r" for line feeds, instead of the more common "\n", HTTP::Tiny will incorrectly assume it received two line feeds. It will then throw the ambiguous, unhelpful error as seen below:

$VAR1 = {
'url' => '<URL to server sending out "\n\r" as a line feed>',
'reason' => 'Internal Exception',
'content' => 'Unexpected end of stream while looking for line
',
'success' => '',
'headers' => {
'content-length' => 48,
'content-type' => 'text/plain'
},
'status' => 599
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions