klein / klein.php

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

String length in chunked response #309

Closed bstoy closed 9 years ago

bstoy commented 9 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 :)

diagnosiadev commented 9 years ago

it is in this fork: https://github.com/Diagnosia/klein.php