Subject: | Return a bit earlier in PROPFIND |
in propfind, you could return a bit earlier:
# return *before* parsing (optional) message body on
# non-existing resources
if( !$fs->test( 'e', $path ) ){
return HTTP::Response->new( 404, 'Not Found'
}
further I think it would be "cleaner" to move the construction of the
$response to the end of the propfind() function:
...
$response->code(207);
$response->message('Multi-Status');
$response->header( 'Content-Type' => 'text/xml; charset="utf-8"' );
$response->content( $doc->toString(0) ); #this must be 0
return $response;
}