Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
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-tus
Commits
4d4aa2c9
Unverified
Commit
4d4aa2c9
authored
Sep 08, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fail more gracefully for vmods missing
parent
1187d4bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile.am
src/Makefile.am
+1
-0
tus_blob.c
src/tus_blob.c
+5
-1
tus_response.c
src/tus_response.c
+1
-3
No files found.
src/Makefile.am
View file @
4d4aa2c9
...
...
@@ -34,6 +34,7 @@ libvmod_tus_la_SOURCES = \
tus_b64.h
\
tus_blob.c
\
tus_blob.h
\
tus_checksums.h
\
tus_concat.h
\
tus_file.c
\
tus_file.h
\
...
...
src/tus_blob.c
View file @
4d4aa2c9
...
...
@@ -40,6 +40,7 @@
#include "vmod_blobdigest.h"
#include "tus_b64.h"
#include "tus_blob.h"
#include "tus_checksums.h"
static
const
struct
Vmod_vmod_blob_Func
*
vmod_blob
=
NULL
;
static
const
struct
Vmod_vmod_blobdigest_Func
*
vmod_blobdigest
=
NULL
;
...
...
@@ -154,8 +155,11 @@ tus_b64_decode(VRT_CTX, const char *s, VCL_INT l)
{
struct
strands
st
=
{.
n
=
1
,
.
p
=
&
s
};
if
(
!
enabled
)
if
(
!
enabled
)
{
VRT_fail
(
ctx
,
"base64 decode support not available - "
"vmod_blob was not found"
);
return
(
NULL
);
}
AN
(
vmod_blob
);
AN
(
vmod_blob
->
decode
);
...
...
src/tus_response.c
View file @
4d4aa2c9
...
...
@@ -36,15 +36,13 @@
#include "vcc_tus_if.h"
#include "tus_checksums.h"
#include "tus_b64.h"
#include "tus_file.h"
#include "tus_servers.h"
#include "tus_hdr.h"
#include "tus_response.h"
/* tus_blob.c */
const
char
*
tus_checksums
(
void
);
const
unsigned
s_MULT
=
1000
;
const
unsigned
s_OPTIONS
=
1
;
const
unsigned
s_HEAD
=
2
;
...
...
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