Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-blobcode
Commits
8dc108d9
Commit
8dc108d9
authored
Mar 21, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for compatibility with Varnish 5.1.
parent
59a83c24
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
61 deletions
+40
-61
README.rst
README.rst
+5
-3
configure.ac
configure.ac
+1
-1
base64.vtc
src/tests/base64.vtc
+3
-6
base64_n.vtc
src/tests/base64_n.vtc
+3
-6
examples.vtc
src/tests/examples.vtc
+1
-1
xcode.vtc
src/tests/xcode.vtc
+11
-22
xcode_n.vtc
src/tests/xcode_n.vtc
+9
-18
vmod_blobcode.c
src/vmod_blobcode.c
+2
-1
vmod_blobcode.vcc
src/vmod_blobcode.vcc
+5
-3
No files found.
README.rst
View file @
8dc108d9
...
...
@@ -413,9 +413,9 @@ to a header, then the header will not be set.
REQUIREMENTS
============
This version of the VMOD requires
at least Varnish version 5.0.0. (Se
e
branch 4.1 in the project repository for versions that are compatible
with Varnish since 4.1.2
.)
This version of the VMOD requires
Varnish since version 5.1. (See th
e
project repository for versions that are compatible with other
versions of Varnish
.)
Perl 5 is required for the build.
...
...
@@ -507,6 +507,8 @@ HISTORY
* version 2.0: compatible with Varnish versions since 5.0.0
* version 3.0: compatible with Varnish versions since 5.1
SEE ALSO
========
...
...
configure.ac
View file @
8dc108d9
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (c) 2015-2016 UPLEX - Nils Goroll Systemoptimierung])
AC_INIT([libvmod-blobcode], [
2
.0])
AC_INIT([libvmod-blobcode], [
3
.0])
AC_CONFIG_MACRO_DIR([m4])
m4_ifndef([VARNISH_VMOD_INCLUDES], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))
AC_CONFIG_SRCDIR(src/vmod_blobcode.vcc)
...
...
src/tests/base64.vtc
View file @
8dc108d9
...
...
@@ -277,12 +277,9 @@ client c1 {
logexpect
l1
-
v
v1
-
d
1
-
g
vxid
-
q "VCL_Error"
{
expect
0
*
Begin
req
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"-_-_\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"\+/\+/\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"TWFu\"$"
#"
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"-_-_"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"\+/\+/"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"TWFu"
$
}
expect
*
=
End
}
-
start
...
...
src/tests/base64_n.vtc
View file @
8dc108d9
...
...
@@ -191,12 +191,9 @@ client c1 {
logexpect
l1
-
v
v1
-
d
1
-
g
vxid
-
q "VCL_Error"
{
expect
0
*
Begin
req
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"-_-_\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"\+/\+/\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"TWFu\"$"
#"
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"-_-_"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"\+/\+/"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"TWFu"
$
}
expect
*
=
End
}
-
start
...
...
src/tests/examples.vtc
View file @
8dc108d9
...
...
@@ -145,7 +145,7 @@ varnish v1 -arg "-p http_max_hdr=128" -vcl+backend {
} -start
logexpect l1 -v v1 {
expect * 1001 VCL_Log
"
^
Using
VMOD
blobcode
version
\
S
+
$"
expect * 1001 VCL_Log
{^Using VMOD blobcode version \S+$}
} -start
client c1 {
...
...
src/tests/xcode.vtc
View file @
8dc108d9
...
...
@@ -343,28 +343,17 @@ varnish v1 -vcl {
logexpect
l1
-
v
v1
-
d
0
-
g
vxid
-
q "VCL_Error"
{
expect
0
*
Begin
req
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"0x123456\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"-_-_\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"\+/\+/\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"TWFu\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"_-_-\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"/\+/\+\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"Zm9v\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%2\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%q\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%2q\"$"
#"
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"0x123456"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"-_-_"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"\+/\+/"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"TWFu"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"_-_-"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"/\+/\+"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"Zm9v"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%2"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%q"
$
}
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%2q"
$
}
expect
*
=
End
}
-
start
...
...
src/tests/xcode_n.vtc
View file @
8dc108d9
...
...
@@ -354,24 +354,15 @@ varnish v1 -vcl {
logexpect
l1
-
v
v1
-
d
0
-
g
vxid
-
q "VCL_Error"
{
expect
0
*
Begin
req
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"0x123456\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"-_-_\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"\+/\+/\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"TWFu\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"_-_-\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"/\+/\+\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"Zm9v\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%20\"$"
#"
expect
*
=
VCL_Error
"^vmod blobcode error: cannot decode, illegal encoding beginning with \"%20\"$"
#"
expect
*
=
VCL_Error
{
^
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"0x123456"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"-_-_"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"\+/\+/"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"TWFu"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"_-_-"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"/\+/\+"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"Zm9v"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%20"
$
}
expect
*
=
VCL_Error
{
vmod
blobcode
error:
cannot
decode
,
illegal
encoding
beginning
with
"%20"
$
}
expect
*
=
End
}
-
start
...
...
src/vmod_blobcode.c
View file @
8dc108d9
...
...
@@ -415,7 +415,8 @@ decode(VRT_CTX, VCL_INT n, VCL_ENUM decs,
enum
encoding
dec
=
parse_encoding
(
decs
);
struct
wb_s
wb
;
struct
vmod_priv
*
b
;
char
*
snap
,
*
buf
;
char
*
buf
;
uintptr_t
snap
;
ssize_t
len
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
...
...
src/vmod_blobcode.vcc
View file @
8dc108d9
...
...
@@ -341,9 +341,9 @@ to a header, then the header will not be set.
REQUIREMENTS
============
This version of the VMOD requires
at least Varnish version 5.0.0. (Se
e
branch 4.1 in the project repository for versions that are compatible
with Varnish since 4.1.2
.)
This version of the VMOD requires
Varnish since version 5.1. (See th
e
project repository for versions that are compatible with other
versions of Varnish
.)
Perl 5 is required for the build.
...
...
@@ -435,6 +435,8 @@ HISTORY
* version 2.0: compatible with Varnish versions since 5.0.0
* version 3.0: compatible with Varnish versions since 5.1
SEE ALSO
========
...
...
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