X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FWebDAV.pm;h=a391c076928f0d0fef5df1dddae83b4a02eb21bf;hp=76211549ccecaa1dd782cd7639892dc68ea943d8;hb=97587692088c0aebc302164e335817f5dfedc49f;hpb=08c2d6184b4ad4c1fbe1e15b8e8563dfd3136f02 diff --git a/perl/Sesse/pr0n/WebDAV.pm b/perl/Sesse/pr0n/WebDAV.pm index 7621154..a391c07 100644 --- a/perl/Sesse/pr0n/WebDAV.pm +++ b/perl/Sesse/pr0n/WebDAV.pm @@ -9,6 +9,10 @@ use MIME::Base64; sub handler { my $r = shift; my $dbh = Sesse::pr0n::Common::get_dbh(); + + # We ignore the body, but we _must_ consume it fully before + # we output anything, or Squid will get seriously confused + $r->discard_request_body; $r->headers_out->{'DAV'} = "1,2";