Skip to content

Warning when producing an error message #55

Description

@markov2

In lib/Net/HTTP/Methods.pm line 528, you can find

die "Missing newline after chunk data: '$line'"
    if !defined($line) || $line ne "";

On an transmission error, we got

Use of uninitialized value $line in concatenation (.) or string at Net/HTTP/Methods.pm line 528.

The logic seems incorrect:

die "Missing newline after chunk data: '$line'"
   if defined $line && $line ne '';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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