Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-esicookies
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-esicookies
Commits
f6471e08
Commit
f6471e08
authored
Oct 10, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for an empty cookie value inbetween
parent
ac980052
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
vmod_esicookies_corners.vtc
src/tests/vmod_esicookies_corners.vtc
+21
-0
No files found.
src/tests/vmod_esicookies_corners.vtc
View file @
f6471e08
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment