Subject: | bug in upload when you give the filehandle (Windows) |
Date: | Tue, 12 Feb 2019 15:47:16 +0100 |
To: | bug-HTTP-Request-StreamingUpload [...] rt.cpan.org |
From: | "MohelnĂková, Lucie" <mohelnikova [...] avast.com> |
Hello,
I would like to give you a feedback on your module
HTTP::Reques::StreamingUpload: It doesn't work correctly on Windows,
when you use the version with filehandle. It's caused by different
type of lines (Linux and Windows are different and you have to open in
binary mode).
Line: https://metacpan.org/source/YAPPO/HTTP-Request-StreamingUpload-0.01/lib/HTTP/Request/StreamingUpload.pm#L36
There should be: open $fh, '<:raw', $args->{path} or Carp::croak
"$args->{path}: $!";
Thank you.
Best regards,
Lucie