mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Only send a Content-Length if the length is > 0
This commit is contained in:
parent
2cb4528746
commit
f5d2b397fd
@ -1199,8 +1199,10 @@ EOSQL;
|
||||
}
|
||||
}
|
||||
|
||||
header( "Content-Length: ".strlen($message) );
|
||||
echo $message;
|
||||
if ( $message != '' ) {
|
||||
@header( "Content-Length: ".strlen($message) );
|
||||
echo $message;
|
||||
}
|
||||
|
||||
if ( isset($c->dbg['caldav']) && $c->dbg['caldav'] ) {
|
||||
if ( strlen($message) > 100 || strstr($message, "\n") ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user