Missing return for DELETE

this would lead to DELETEs being always responded to with a 404
parent 6566b82f
...@@ -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) {
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment