Subject: | HTTP-DAV 0.47: Bug in passing custom headers |
Date: | Sat, 6 Dec 2014 23:47:20 +0100 |
To: | bug-HTTP-DAV [...] rt.cpan.org |
From: | Georg Acher <acher [...] baycom.de> |
Hi,
I'm using HTTP::DAV, version 0.47. According to the man page, put can now
have custom headers. I tried to use them for passing content-range-values
with chunked transfers to circumvent the problems with large file sizes.
But the headers weren't transmitted... I've traced it down to the call of
put in Resource.pm, where _setup_custom_headers is missing the correct
first parameter for the resulting header set:
--- ../../HTTP-DAV-0.47/lib/HTTP/DAV/Resource.pm 2012-03-24 14:46:25.000000000 +0100
+++ Resource.pm 2014-12-06 23:34:07.000000000 +0100
@@ -575,7 +575,7 @@
my $headers = HTTP::DAV::Headers->new();
$self->_setup_if_headers($headers);
- $self->_setup_custom_headers($custom_headers);
+ $self->_setup_custom_headers($headers,$custom_headers);
if (!defined $content) {
$content = $self->get_content();
With this patch, the header transmission works.
Greetings,
Georg
--
Georg Acher - acher@baycom.de
BayCom GmbH - Broadcast and Media Solutions - AG München HRB 135345
Guardinistr. 47, D-81375 München, Tel: +49(0)89/71034545