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
97f294ae
Unverified
Commit
97f294ae
authored
Feb 01, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing return for DELETE
this would lead to DELETEs being always responded to with a 404
parent
6566b82f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
tus_request.c
src/tus_request.c
+1
-0
done.vtc
src/vtc/done.vtc
+9
-0
No files found.
src/tus_request.c
View file @
97f294ae
...
@@ -367,6 +367,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
...
@@ -367,6 +367,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
tus_file_del
(
&
r
->
fcore
);
tus_file_del
(
&
r
->
fcore
);
AZ
(
r
->
fcore
);
AZ
(
r
->
fcore
);
r
->
s
.
status
=
204
;
r
->
s
.
status
=
204
;
return
(
0
);
}
}
if
(
m
==
GET
)
{
if
(
m
==
GET
)
{
...
...
src/vtc/done.vtc
View file @
97f294ae
...
@@ -151,6 +151,15 @@ client c2 {
...
@@ -151,6 +151,15 @@ client c2 {
expect resp.status == 301
expect resp.status == 301
expect resp.http.Location == "http://localhost/id-empty"
expect resp.http.Location == "http://localhost/id-empty"
txreq -method "DELETE" -url "/id-empty" \
-hdr "Tus-Resumable: 1.0.0"
rxresp
expect resp.status == 204
txreq -method "DELETE" -url "/id-empty" \
-hdr "Tus-Resumable: 1.0.0"
rxresp
expect resp.status == 404
} -start
} -start
client c1 -wait
client c1 -wait
...
...
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