Skip to content

Commit

Permalink
Applied the initial request body to the correct property
Browse files Browse the repository at this point in the history
  • Loading branch information
samsoir committed Dec 13, 2010
1 parent 5d7b5b5 commit dd825fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/kohana/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public static function factory( & $uri = TRUE, Kohana_Cache $cache = NULL)
// Create the instance singleton
$request = new Request($uri, $cache);

// If there is a body, set it to the model
isset($body) and $request->body = $body;

// Create the initial request if it does not exist
if (Request::$initial === NULL)
{
Expand Down

0 comments on commit dd825fb

Please sign in to comment.