Ensure that we still show something useful when there is no User-agent header.

This commit is contained in:
Andrew McMillan 2006-11-21 20:20:50 +13:00
parent 7020dbd7cb
commit af2a658827

View File

@ -9,7 +9,7 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
*/
require_once("always.php");
dbg_error_log( "caldav", " User agent: %s", $_SERVER['HTTP_USER_AGENT'] );
dbg_error_log( "caldav", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) );
require_once("BasicAuthSession.php");
$raw_headers = apache_request_headers();