Branch: Tag:

2016-07-27

2016-07-27 13:20:02 by Martin Nilsson <nilsson@fastmail.com>

Test line folding.

116:   test_hp( "GET / HTTP/1.0\r\nblaha: foo\n\rBlaha: bar\r\n\r\n",   ({ "", "GET / HTTP/1.0", ([ "blaha":({ "foo", "bar" }) ]) }) )    + test_hp( "GET / HTTP/1.0\r\nblaha: foo\r\n bar\r\nx:1\r\n\t2\r\n\r\n", + ({ "", "GET / HTTP/1.0", ([ "blaha":"foo bar", "x":"1\t2" ]) }) ) +    test_any_equal([[    object hp = _Roxen.HeaderParser(0, 1);    return hp->feed( "GET / HTTP/1.0\r\nBlaha: foo\r\nblaha: foo\r\n\r\n" );