chriso/klein.php — pull request #49 by Rican7 (2012-09-07 16:41:46+00:00)
Title: Json method fix

The JSON method was causing header warnings, since it was discarding the buffer and not restarting it.
Also, at the end of the dispatch method, a notice was being thrown since it was trying to clean a buffer that didn't exist.

These are my proposed fixes.