pike.git/
src/
modules/
_Roxen/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-07-27
2016-07-27 13:24:47 by Martin Nilsson <nilsson@fastmail.com>
2d6f1e3d2d6687b4437a90acd958d45e9f482c4d (
11
lines) (+
11
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
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