Branch: Tag:

2016-07-27

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

Test throwing of exceptions on malformed headers.

129:    return hp->feed( "GET / HTTP/1.0\r\nBlaha: foo\r\nblaha: foo\r\n\r\n", 1 );   ]], [[ ({ "", "GET / HTTP/1.0", ([ "Blaha":"foo", "blaha":"foo"]) }) ]])    + test_any_equal([[ +  object hp = _Roxen.HeaderParser(); +  return hp->feed( "GET / HTTP/1.0\r\nA\r\nblaha: foo\r\n\r\n" ); + ]], [[ ({ "", "GET / HTTP/1.0", (["blaha":"foo"]) }) ]]) +  + test_eval_error([[ +  object hp = _Roxen.HeaderParser(1); +  return hp->feed( "GET / HTTP/1.0\r\nA\r\nblaha: foo\r\n\r\n" ); + ]]) +    END_MARKER