Commit 1c239a93 authored by Geoff Simmons's avatar Geoff Simmons

add a test to verify truncated IDENTITY encoding when a blob has a

null byte in the middle
parent 1f7aa1db
...@@ -52,6 +52,8 @@ varnish v1 -vcl { ...@@ -52,6 +52,8 @@ varnish v1 -vcl {
"the lazy dog" + req.url + req.http.unset + "", "the lazy dog" + req.url + req.http.unset + "",
decoding=IDENTITY)); decoding=IDENTITY));
set resp.http.truncated =
blobcode.encode(IDENTITY, blobcode.decode(HEX, "666f6f00626172"));
} }
} -start } -start
...@@ -66,4 +68,5 @@ client c1 { ...@@ -66,4 +68,5 @@ client c1 {
expect resp.http.emptylist == "" expect resp.http.emptylist == ""
expect resp.http.param == "The quick brown fox jumps over the lazy dog" expect resp.http.param == "The quick brown fox jumps over the lazy dog"
expect resp.http.paramlist == "/The quick brown fox jumps over the lazy dog/" expect resp.http.paramlist == "/The quick brown fox jumps over the lazy dog/"
expect resp.http.truncated == "foo"
} -run } -run
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