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
06342ab1
Unverified
Commit
06342ab1
authored
Aug 17, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polish
parent
7af19490
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
tus_file_exp.c
src/tus_file_exp.c
+1
-0
tus_request.c
src/tus_request.c
+1
-1
tus_response.c
src/tus_response.c
+3
-0
No files found.
src/tus_file_exp.c
View file @
06342ab1
...
...
@@ -76,6 +76,7 @@ tus_exp_thread(void *p)
pthread_mutex_lock
(
&
e
->
mtx
);
}
pthread_mutex_unlock
(
&
e
->
mtx
);
return
(
NULL
);
}
void
...
...
src/tus_request.c
View file @
06342ab1
...
...
@@ -172,7 +172,7 @@ tus_metadata_validate(const char *s, struct test_meta *prev)
while
(
*
s
!=
'\0'
)
{
if
(
*
s
==
','
)
return
(
tus_metadata_validate
(
s
+
1
,
&
this
));
if
(
i64
[
*
s
]
==
ILL
)
if
(
i64
[
(
uint8_t
)
*
s
]
==
ILL
)
return
(
0
);
s
++
;
}
...
...
src/tus_response.c
View file @
06342ab1
...
...
@@ -96,6 +96,7 @@ tus_response(VRT_CTX, const struct VPFX(tus_server) *tussrv,
if
(
resp
->
status
==
301
)
{
AN
(
fdisk
);
assert
(
fdisk
->
type
==
TUS_REDIRECT
);
if
(
fdisk
->
metadata_length
==
0
)
resp
->
status
=
410
;
else
if
(
fdisk
->
metadata
[
0
]
==
'/'
)
...
...
@@ -168,6 +169,8 @@ tus_response(VRT_CTX, const struct VPFX(tus_server) *tussrv,
case
TUS_PARTIAL
:
http_ForceHeader
(
r
,
hdr_concat
,
"partial"
);
break
;
default:
INCOMPL
();
}
break
;
}
...
...
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