Commit 67637d3a authored by Dietmar Maurer's avatar Dietmar Maurer

accept len=0 for http requests

parent 9fed3af4
...@@ -724,7 +724,7 @@ sub unshift_read_header { ...@@ -724,7 +724,7 @@ sub unshift_read_header {
$reqstate->{log}->{userid} = $auth->{userid}; $reqstate->{log}->{userid} = $auth->{userid};
if (defined($len)) { if ($len) {
if (!($method eq 'PUT' || $method eq 'POST')) { if (!($method eq 'PUT' || $method eq 'POST')) {
$self->error($reqstate, 501, "Unexpected content for method '$method'"); $self->error($reqstate, 501, "Unexpected content for method '$method'");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment