Skip to content

die creates new warning on missing newline #74

@oalders

Description

@oalders

Got this report via email:


Using Net::HTTP::Methods I very often receive errors:

Use of uninitialized value $line in concatenation (.) or string at /opt/perl5.28.2/lib/site_perl/5.28.2/Net/HTTP/Methods.pm line 534.
Use of uninitialized value $line in concatenation (.) or string at /opt/perl5.28.2/lib/site_perl/5.28.2/Net/HTTP/Methods.pm line 534.

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

When $line is undefined it tried to print it in die statement.

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