Skip Menu |

This queue is for tickets about the Net-UPnP CPAN distribution.

Report information
The Basics
Id: 107515
Status: new
Priority: 0/
Queue: Net-UPnP

People
Owner: Nobody in particular
Requestors: james.r.harris [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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