From daccdd8391d419ab26c92b1dda87765fd023a6fc Mon Sep 17 00:00:00 2001
From: Robert Sesek <rsesek@bluestatic.org>
Date: Sun, 7 Aug 2011 22:47:20 -0400
Subject: [PATCH] Make RootControllerDelegate::OnInitialRequest also send the
 response

---
 http/root_controller.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/http/root_controller.php b/http/root_controller.php
index b4b87bb..4a0832f 100644
--- a/http/root_controller.php
+++ b/http/root_controller.php
@@ -104,7 +104,7 @@ class RootController
     $this->request->url = $url;
     $this->request->http_method = $this->request->data['_SERVER']['REQUEST_METHOD'];
 
-    $this->delegate->OnInitialRequest($this->request);
+    $this->delegate->OnInitialRequest($this->request, $this->response);
 
     // Dispatch the request to an Action.
     $this->RouteRequest($this->request);
@@ -193,7 +193,7 @@ class RootController
 */
 interface RootControllerDelegate
 {
-  public function OnInitialRequest(Request $request);
+  public function OnInitialRequest(Request $request, Response $response);
 
   public function WillRouteRequest(Request $request, Response $response);
 
-- 
2.43.5