Subject: | RTSP request header is sent in lower case |
Date: | Fri, 17 Jun 2011 10:49:47 +0800 |
To: | bug-RTSP-Lite [...] rt.cpan.org |
From: | LYF <yefei.li [...] gmail.com> |
Reproduce steps:
Modify the sample describe.pl to request a url.
Open debug, check the user-agent line:
add_req_header User-Agent GoodPlayer 1.1
add_req_header CSEQ 1
write: DESCRIBE rtsp://www.abc.com/realqt.mov RTSP/1.0
write: user-agent: GoodPlayer 1.1
write: cseq: 1
write:
read handle=*RTSP::Lite::FH, headm=1, chunkm=0, chunksize=0
Patch:
--- Lite.pm.orig 2011-06-17 10:34:12.000000000 +0800
+++ Lite.pm 2011-06-17 10:34:50.000000000 +0800
@@ -474,7 +474,7 @@
my ($header) = @_;
my $exists;
- return keys %{$self->{headermap}};
+ return values %{$self->{headermap}};
}
sub body