Skip to content

Commit

Permalink
Created Request::reparseBody
Browse files Browse the repository at this point in the history
  • Loading branch information
mathmarques committed Mar 10, 2016
1 parent 3e24602 commit 60927c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Slim/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,20 @@ public function withParsedBody($data)
return $clone;
}

/**
* Force Body to be parsed again.
*
* Note: This method is not part of the PSR-7 standard.
*
* @return self
*/
public function reparseBody()
{
$this->bodyParsed = false;

return $this;
}

/**
* Register media type parser.
*
Expand Down

0 comments on commit 60927c3

Please sign in to comment.