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
895dcc8d
Commit
895dcc8d
authored
Feb 15, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the default lgwin value in the encoder constructor.
parent
9f229baa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
README.rst
README.rst
+1
-1
vfp_brotli.c
src/vfp_brotli.c
+1
-2
vfp_brotli.vcc
src/vfp_brotli.vcc
+1
-1
No files found.
README.rst
View file @
895dcc8d
...
...
@@ -78,7 +78,7 @@ new xencoder = brotli.encoder(STRING name, BYTES bufffer, INT quality, BOOL larg
BYTES bufffer=32768,
INT quality=11,
BOOL large_win=0,
INT lgwin=
0
INT lgwin=
22
)
XXX ...
...
...
src/vfp_brotli.c
View file @
895dcc8d
...
...
@@ -772,8 +772,7 @@ vmod_encoder__init(VRT_CTX, struct vmod_brotli_encoder **encp,
return
;
}
if
(
lgwin
!=
0
&&
(
lgwin
<
BROTLI_MIN_WINDOW_BITS
||
lgwin
>
BROTLI_MAX_WINDOW_BITS
))
{
if
(
lgwin
<
BROTLI_MIN_WINDOW_BITS
||
lgwin
>
BROTLI_MAX_WINDOW_BITS
)
{
VFAIL
(
ctx
,
"new %s: lgwin %ld out of range (%d to %d)"
,
vcl_name
,
lgwin
,
BROTLI_MIN_WINDOW_BITS
,
BROTLI_MAX_WINDOW_BITS
);
...
...
src/vfp_brotli.vcc
View file @
895dcc8d
...
...
@@ -63,7 +63,7 @@ algorithm for responses fetched from backends.
XXX ...
$Object encoder(PRIV_VCL, STRING name, BYTES bufffer=32768, INT quality=11,
BOOL large_win=0, INT lgwin=
0
)
BOOL large_win=0, INT lgwin=
22
)
XXX ...
...
...
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