Commit eec11783 authored by Geoff Simmons's avatar Geoff Simmons

add a test for decoding URL with mixed case

parent 479e5e1f
......@@ -81,6 +81,7 @@ varnish v1 -vcl {
set req.http.urllcfoobar = "foo%3abar%3abaz%3aquux";
set req.http.urlucfoobar = "foo%3Abar%3Abaz%3Aquux";
set req.http.urlmixedfoobar = "foo%3Abar%3abaz%3Aquux";
set req.http.urlhobbeslc = "Man%20is%20distinguished%2c%20not%20only%20by%20his%20reason%2c%20but%20by%20this%20singular%20passion%20from%20other%20animals%2c%20which%20is%20a%20lust%20of%20the%20mind%2c%20that%20by%20a%20perseverance%20of%20delight%20in%20the%20continued%20and%20indefatigable%20generation%20of%20knowledge%2c%20exceeds%20the%20short%20vehemence%20of%20any%20carnal%20pleasure.";
set req.http.urlhobbesuc = "Man%20is%20distinguished%2C%20not%20only%20by%20his%20reason%2C%20but%20by%20this%20singular%20passion%20from%20other%20animals%2C%20which%20is%20a%20lust%20of%20the%20mind%2C%20that%20by%20a%20perseverance%20of%20delight%20in%20the%20continued%20and%20indefatigable%20generation%20of%20knowledge%2C%20exceeds%20the%20short%20vehemence%20of%20any%20carnal%20pleasure.";
set req.http.urllcumlauts = "%c3%9cbergr%c3%b6%c3%9fentr%c3%a4ger";
......@@ -100,6 +101,10 @@ varnish v1 -vcl {
blobcode.encode(IDENTITY,
blobcode.decode(URL, req.http.urllcfoobar));
set resp.http.decmixed =
blobcode.encode(IDENTITY,
blobcode.decode(URL, req.http.urlmixedfoobar));
set resp.http.dechobbesuc =
blobcode.encode(IDENTITY,
blobcode.decode(URL, req.http.urlhobbesuc));
......@@ -195,6 +200,7 @@ client c1 {
expect resp.http.urlucparam == "The%20quick%20brown%20fox%20jumps%20over%20the%20lazy%20dog"
expect resp.http.decuc == "foo:bar:baz:quux"
expect resp.http.declc == "foo:bar:baz:quux"
expect resp.http.decmixed == "foo:bar:baz:quux"
expect resp.http.dechobbesuc == "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure."
expect resp.http.dechobbeslc == "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure."
expect resp.http.decumlautsuc == "Übergrößenträger"
......
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