From 5265ed496f51647222e73d8a9480b88f600c0068 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 11 Sep 2009 08:42:07 +1200 Subject: [PATCH] Fix header logging. --- inc/CalDAVRequest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index f85f7cd8..7465e0e3 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -93,8 +93,9 @@ class CalDAVRequest /** Log the request headers */ $lines = apache_request_headers(); dbg_error_log( "LOG ", "***************** Request Header ****************" ); - foreach( $lines AS $v ) { - dbg_error_log( "LOG headers", "-->%s", $v ); + dbg_error_log( "LOG ", "%s %s", $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] ); + foreach( $lines AS $k => $v ) { + dbg_error_log( "LOG headers", "-->%s: %s", $k, $v ); } dbg_error_log( "LOG ", "******************** Request ********************" ); // Log the request in all it's gory detail.