Subject: | Net::UPnP::HTTP.pm does not parse Content-Length: header correctly |
Date: | Fri, 2 Oct 2015 16:30:43 -0700 |
To: | skonno [...] cybergarage.org, bug-Net-UPnP [...] rt.cpan.org |
From: | James Harris <james.r.harris [...] gmail.com> |
It seems that the Net::UPnP::HTTP.pm does not correctly parse
Content-Length: when it is not the first response header. The line
if($res_header =~ m/^Content-Length[: ]*(\d+)/i ) {
should be
if($res_header =~ m/^Content-Length[: ]*(\d+)/im ) {
Just as it is for the Transfer-Encoding header parsing
if($res_header =~ m/^Transfer-Encoding[: ]*chunked/im ) {
This bug causes the search() to hang indefinitely for devices that do not use
Connection: Close
Ala Googles Chromecast Audio.
--
James Harris
Software Engineer
james.r.harris@gmail.com