Commit f6471e08 authored by Nils Goroll's avatar Nils Goroll

add a test for an empty cookie value inbetween

parent ac980052
......@@ -61,6 +61,21 @@ server s1 {
expect req.http.Cookie == "=1"
txresp -body {Included file}
# cookie with no value within cookie header
rxreq
expect req.url == "/c_no_val_middle"
expect req.http.Cookie == "ok=val; noval=; ok2=val;"
txresp -body {
<html>
Before include
<esi:include src="/i_no_val_middle"/>
After include
}
rxreq
expect req.url == "/i_no_val_middle"
expect req.http.Cookie == "ok=val; noval=; ok2=val;"
txresp -body {Included file}
# cookie with empty value from response
rxreq
expect req.url == "/includer5"
......@@ -173,6 +188,12 @@ client c1 {
expect resp.bodylen == 60
expect resp.http.X-Err == "Invalid argument"
# cookie with no value within cookie header
txreq -url "/c_no_val_middle" -hdr "Cookie: ok=val; noval=; ok2=val;"
rxresp
expect resp.bodylen == 60
expect resp.http.X-Err == "Invalid argument"
# Set-Cookie response with empty value
txreq -url "/includer5" -hdr "Cookie: fromclient=1"
rxresp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment