mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +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) );
|
if ( $message != '' ) {
|
||||||
echo $message;
|
@header( "Content-Length: ".strlen($message) );
|
||||||
|
echo $message;
|
||||||
|
}
|
||||||
|
|
||||||
if ( isset($c->dbg['caldav']) && $c->dbg['caldav'] ) {
|
if ( isset($c->dbg['caldav']) && $c->dbg['caldav'] ) {
|
||||||
if ( strlen($message) > 100 || strstr($message, "\n") ) {
|
if ( strlen($message) > 100 || strstr($message, "\n") ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user