Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-iconv
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-iconv
Commits
45a1f98b
Unverified
Commit
45a1f98b
authored
Sep 01, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Excercise tests on actual STRANDS
parent
d1e342a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vmod_iconv.vtc
src/vtc/vmod_iconv.vtc
+6
-6
No files found.
src/vtc/vmod_iconv.vtc
View file @
45a1f98b
...
...
@@ -17,11 +17,11 @@ varnish v1 -vcl {
sub do_eurutf {
if (req.http.fallback != "") {
set resp.http.out = eurutf.iconv(
set resp.http.out = eurutf.iconv(
"X" +
blob.transcode(BASE64, encoded=req.http.in),
fallback=req.http.fallback);
} else {
set resp.http.out = eurutf.iconv(
set resp.http.out = eurutf.iconv(
"X" +
blob.transcode(BASE64, encoded=req.http.in));
}
return (deliver);
...
...
@@ -29,11 +29,11 @@ varnish v1 -vcl {
sub do_utfeur {
if (req.http.fallback != "") {
set resp.http.out = blob.transcode(encoding=URL,
encoded=utfeur.iconv(
req.http.in
,
encoded=utfeur.iconv(
"x" + req.http.in + "x"
,
fallback=req.http.fallback));
} else {
set resp.http.out = blob.transcode(encoding=URL,
encoded=utfeur.iconv(
req.http.in
));
encoded=utfeur.iconv(
"x" + req.http.in + "x"
));
}
return (deliver);
}
...
...
@@ -51,11 +51,11 @@ client c1 {
txreq -url "/eurutf" -hdr "in: pA=="
rxresp
expect resp.status == 200
expect resp.http.out == "€"
expect resp.http.out == "
X
€"
txreq -url "/utfeur" -hdr "in: €"
rxresp
expect resp.http.out == "
%a4
"
expect resp.http.out == "
x%a4x
"
expect resp.status == 200
txreq -url "/utfeur" -hdr "fallback: bad" -hdr "in: 🐰"
...
...
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