Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvfp-brotli
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
libvfp-brotli
Commits
278460f3
Commit
278460f3
authored
Feb 12, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the decoder_version() function.
parent
f72cbbdf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
README.rst
README.rst
+4
-1
00basic.vtc
src/tests/00basic.vtc
+5
-0
vfp_brotli.c
src/vfp_brotli.c
+0
-2
vfp_brotli.vcc
src/vfp_brotli.vcc
+1
-1
No files found.
README.rst
View file @
278460f3
...
...
@@ -58,7 +58,10 @@ Example::
std.log("Using brotli encoder version: " + brotli.encoder_version());
#$Function STRING decoder_version()
.. _vmod_brotli.decoder_version:
STRING decoder_version()
------------------------
Return the version string for the brotli decoder.
...
...
src/tests/00basic.vtc
View file @
278460f3
...
...
@@ -37,6 +37,10 @@ varnish v1 -vcl {
if (!resp.http.x-encoder-version) {
set resp.status = 500;
}
set resp.http.x-decoder-version = brotli.decoder_version();
if (!resp.http.x-decoder-version) {
set resp.status = 500;
}
return(deliver);
}
}
...
...
@@ -47,4 +51,5 @@ client c1 {
expect resp.status == 200
expect resp.http.x-version ~ "^.+$"
expect resp.http.x-encoder-version ~ {^\d+\.\d+\.\d+$}
expect resp.http.x-decoder-version ~ {^\d+\.\d+\.\d+$}
} -run
src/vfp_brotli.c
View file @
278460f3
...
...
@@ -443,13 +443,11 @@ vmod_encoder_version(VRT_CTX)
return
(
brotli_version
(
ctx
,
BrotliEncoderVersion
()));
}
#if 0
VCL_STRING
vmod_decoder_version
(
VRT_CTX
)
{
return
(
brotli_version
(
ctx
,
BrotliDecoderVersion
()));
}
#endif
VCL_STRING
vmod_version
(
VRT_CTX
)
...
...
src/vfp_brotli.vcc
View file @
278460f3
...
...
@@ -51,7 +51,7 @@ Example::
std.log("Using brotli encoder version: " + brotli.encoder_version());
#
$Function STRING decoder_version()
$Function STRING decoder_version()
Return the version string for the brotli decoder.
...
...
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