klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

String length in chunked response #308

Closed diagnosiadev closed 8 years ago

diagnosiadev commented 8 years ago

I'm trying to get rid of the string length in every chunked response.

Like in the TestCase (/Klein/Tests/ResponseTest.php), the string length seems to be expected, but i dont need it and i want to have a clean json.

        $this->expectOutputString(
            dechex(strlen($content[0]))."\r\n"
            ."$content[0]\r\n"
            .dechex(strlen($content[1]))."\r\n"
            ."$content[1]\r\n"
            .dechex(strlen($content[2]))."\r\n"
            ."$content[2]\r\n"
        );

Please let me know where and which changes i need to make to get this working :)