projects
/
pr0n
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08c2d61
)
When using WebDAV, make sure the entire body is in before we start sending
author
Steinar H. Gunderson
<sesse@debian.org>
Wed, 9 Aug 2006 20:55:52 +0000
(22:55 +0200)
committer
Steinar H. Gunderson
<sesse@debian.org>
Wed, 9 Aug 2006 20:55:52 +0000
(22:55 +0200)
out stuff ourselves. This fixes an extremely long-standing bug with Squid.
perl/Sesse/pr0n/WebDAV.pm
patch
|
blob
|
history
diff --git
a/perl/Sesse/pr0n/WebDAV.pm
b/perl/Sesse/pr0n/WebDAV.pm
index 76211549ccecaa1dd782cd7639892dc68ea943d8..a391c076928f0d0fef5df1dddae83b4a02eb21bf 100644
(file)
--- 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";